<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tips to improve control chart visualization in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85883#M38355</link>
    <description>You will need to add code to Hide and Exclude the first data point on the chart....If you rerun the script that does the Hide and Exclude, it will use the new dt &amp;lt;&amp;lt; N Rows() calculation based upon the increased number of rows.</description>
    <pubDate>Fri, 14 Dec 2018 16:01:10 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-12-14T16:01:10Z</dc:date>
    <item>
      <title>Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85679#M38247</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created several control charts out of a JMP data table and saved everything as a report, I would like to do the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how can I modify the script in order to get plotted only the last 30 datapoints from the data table?&lt;/LI&gt;&lt;LI&gt;how can I modify the script in order to set the correct size of the chart? Right now every time I open it the graph is compressed on the left side&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 12:48:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85679#M38247</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-12T12:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85682#M38250</link>
      <description>&lt;P&gt;There are a couple of ways to do this.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select all rows where Row()&amp;nbsp;&amp;lt; N Rows(dt)-30 and then Hide and Exclude them&lt;/LI&gt;
&lt;LI&gt;Create a subset of the last by selecteding all rows where Row() &amp;gt;= N Rows(dt)-30 and then use Tables==&amp;gt;Subset to create a new data table, and run the Chart Builder against the new data table&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Unless you have manually changed the chart size in the script, JMP will use the chart size defaults from the preferences.&amp;nbsp; My suggestion is that you interactively run the chart.&amp;nbsp; Then manually change the chart size to the size you want it to be, and then go to the red triangle and select "Save Script".&amp;nbsp; It will have the script code embedded the script it produces, to change the chart size when you run it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85682#M38250</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-12T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85733#M38277</link>
      <description>&lt;P&gt;Hello txnelson,&lt;/P&gt;&lt;P&gt;thanks for your suggestions, unfortunalety what I would like to do is to code in the script something to pickup from the data table only last 30 datapoints automatically without creating a subset of the current data table.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 09:13:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85733#M38277</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-13T09:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85746#M38281</link>
      <description>&lt;P&gt;The first option that I suggested does not require subsetting!&amp;nbsp; See the script below&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chartbuilder.PNG" style="width: 863px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14834iFF2B644B0443F057/image-size/large?v=v2&amp;amp;px=999" role="button" title="chartbuilder.PNG" alt="chartbuilder.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/semiconductor capability.jmp");

// Hide and Exclude all rows except the last 30
dt &amp;lt;&amp;lt; select where(Row() &amp;lt; N Rows( dt ) - 29 );
dt &amp;lt;&amp;lt; Hide and Exclude;

// Unselect the rows
dt &amp;lt;&amp;lt; clear select

// Run the control chart
cc = Control Chart Builder(
	Variables( Y( :NPN1 ) ),
	Chart( Position( 1 ), Limits( Sigma( "Moving Range" ) ) ),
	Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);

// Set the axis parameters
report(cc)[AxisBox(1)]&amp;lt;&amp;lt;min(nrows(dt)-30);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Dec 2018 11:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85746#M38281</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-13T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85782#M38295</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;so I tried to follow your hint, here below the script I'm getting after creating an Individual control chart out of a data table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Control Chart(
	Sample Label( :Data ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Si STD 3 ppb, Individual Measurement( Avg( 3 ), LCL( 2.25 ), UCL( 3.75 ) ) ),
	SendToReport( Dispatch( {"Individual Measurement of Si STD 3 ppb"}, "IR Chart of IM", FrameBox, {Frame Size( 1301, 208 )} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where should I paste the code?&lt;BR /&gt;Sorry but I'm really a beginner with scripting.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:03:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85782#M38295</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-13T17:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85787#M38299</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

// Hide and Exclude all rows except the last 30
dt &amp;lt;&amp;lt; select where(Row() &amp;lt; N Rows( dt ) - 29 );
dt &amp;lt;&amp;lt; Hide and Exclude;

// Unselect the rows
dt &amp;lt;&amp;lt; clear select

cc = Control Chart(
	Sample Label( :Data ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Si STD 3 ppb, Individual Measurement( Avg( 3 ), LCL( 2.25 ), UCL( 3.75 ) ) ),
	SendToReport(
		Dispatch(
			{"Individual Measurement of Si STD 3 ppb"},
			"IR Chart of IM",
			FrameBox,
			{Frame Size( 1301, 208 )}
		)
	)
);

// Set the axis parameters
report(cc)[AxisBox(1)]&amp;lt;&amp;lt;min(nrows(dt)-30);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To give you the&amp;nbsp;best headstart into the world of scripting in JMP, I strongly suggest that you read the Scripting Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;and if you are not versed in computer programming in general, I suggest you find o onto the web and&amp;nbsp;search for "free online introduction to programming". &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 15:51:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85787#M38299</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-13T15:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85864#M38339</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;the script is working fine to select last 30 datapoints but I think I'm getting a problem in setting the min and max on the X axis as per below screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14843i8DAD0AA10CC93AF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 11:12:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85864#M38339</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-14T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85865#M38340</link>
      <description>&lt;P&gt;The line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;report(cc)[AxisBox(1)]&amp;lt;&amp;lt;min(nrows(dt)-30);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;apparently is not finding the AxisBox() that it needs to change.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Did the example that I included in my Dec 13th 3:23(my time) work correctly?&lt;/LI&gt;
&lt;LI&gt;Is the variable "dt" being assigned to point to your target data table?&lt;/LI&gt;
&lt;LI&gt;Is the "cc" pointing to the Control Chart Platform&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cc = Control Chart(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It would help to&amp;nbsp;beable to see the actual code that you are using.&amp;nbsp; Could you please provide that code?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 11:39:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85865#M38340</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-14T11:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85872#M38346</link>
      <description>&lt;P&gt;So the script I'm using is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

// Hide and Exclude all rows except the last 30
dt &amp;lt;&amp;lt; select where(Row() &amp;lt; N Rows( dt ) - 29 );
dt &amp;lt;&amp;lt; Hide and Exclude;

// Unselect the rows
dt &amp;lt;&amp;lt; clear select

cc = Control Chart(
	Sample Label( :Data ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Si STD 3 ppb, Individual Measurement( Avg( 3 ), LCL( 2.25 ), UCL( 3.75 ) ) ),
	SendToReport(
		Dispatch(
			{"Individual Measurement of Si STD 3 ppb"},
			"IR Chart of IM",
			FrameBox,
			{Frame Size( 1301, 208 )}
		)
	)
);

// Set the axis parameters
report(cc)[AxisBox(1)]&amp;lt;&amp;lt;min(nrows(dt)-30);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regarding the first bullet point, we I rant that code I'm getting this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 642px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14844iA0F6860612866644/image-dimensions/642x333?v=v2" width="642" height="333" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For points 2 and 3, how can I check this?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 14:38:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85872#M38346</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-14T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85876#M38350</link>
      <description>&lt;P&gt;Oops....a couple of mistakes.&lt;/P&gt;
&lt;P&gt;There needs to be a ";" after the dt &amp;lt;&amp;lt; Select Clear;&lt;/P&gt;
&lt;P&gt;The Chart you are using needs to have AxisBox(2) referenced, not AxisBox(1);&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

// Hide and Exclude all rows except the last 30
dt &amp;lt;&amp;lt; select where(Row() &amp;lt; N Rows( dt ) - 29 );
dt &amp;lt;&amp;lt; Hide and Exclude;

// Unselect the rows
dt &amp;lt;&amp;lt; clear select;

cc = Control Chart(
	Sample Label( :Data ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Si STD 3 ppb, Individual Measurement( Avg( 3 ), LCL( 2.25 ), UCL( 3.75 ) ) ),
	SendToReport(
		Dispatch(
			{"Individual Measurement of Si STD 3 ppb"},
			"IR Chart of IM",
			FrameBox,
			{Frame Size( 1301, 208 )}
		)
	)
);

// Set the axis parameters
report(cc)[AxisBox(2)]&amp;lt;&amp;lt;min(nrows(dt)-30);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 15:27:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85876#M38350</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-14T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85881#M38353</link>
      <description>&lt;P&gt;Thanks a lot, now the script is working as expected in terms of axis settings.&lt;/P&gt;&lt;P&gt;I think the last step I need is the following:&lt;/P&gt;&lt;P&gt;normally we have the datatable embedded in a JMP report, so adding a new data line on the data the chart is updated automatically with the new value, I noticed that the "last 30 datapoints" is not rolling in the way 1 new value, 1 old value less but day by day the number of plotted point is increasing by 1.&lt;/P&gt;&lt;P&gt;There's something I can do?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 15:55:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85881#M38353</guid>
      <dc:creator>js1985</dc:creator>
      <dc:date>2018-12-14T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tips to improve control chart visualization</title>
      <link>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85883#M38355</link>
      <description>You will need to add code to Hide and Exclude the first data point on the chart....If you rerun the script that does the Hide and Exclude, it will use the new dt &amp;lt;&amp;lt; N Rows() calculation based upon the increased number of rows.</description>
      <pubDate>Fri, 14 Dec 2018 16:01:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tips-to-improve-control-chart-visualization/m-p/85883#M38355</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-14T16:01:10Z</dc:date>
    </item>
  </channel>
</rss>

