<?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: Plotting lower / upper limits and average in a control chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44876#M25666</link>
    <description>&lt;P&gt;The values can be added to the chart. &amp;nbsp;If there are not phases, the values are displayed as part of the chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annotate2.PNG" style="width: 481px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7693i1A51A1E91F0149BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="annotate2.PNG" alt="annotate2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if the data has phases, the values, as you are pointing out are in a table next to the chart, and you want them on the chart. &amp;nbsp;If your old software allowed you to manually add the values, then you can do the same within JMP by just annotating the chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annotate.PNG" style="width: 672px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7694i2B8E5319E5C70691/image-size/large?v=v2&amp;amp;px=999" role="button" title="annotate.PNG" alt="annotate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need this programatically done, then a script could be used to simply read the values from the displayed table and placed onto the IR chart. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed in your example from your old software, that only one set of limits were displayed, even though it appeared that there were different phases. &amp;nbsp;Was that because the limits were the same for all phases?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 13:28:18 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-09-20T13:28:18Z</dc:date>
    <item>
      <title>Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44866#M25661</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if it is possible to plot the lower , upper and average values direct in the control chart (created by&amp;nbsp;control chart builder)&amp;nbsp;instead of Show Limit Summaries table.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:25:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44866#M25661</guid>
      <dc:creator>vjalvim</dc:creator>
      <dc:date>2017-09-20T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44868#M25662</link>
      <description>&lt;P&gt;You could double-click on the vertical axis and add refernece lines, or add a custom graphics script to the graph box by right-clicking on this. For the second option, do 'Help &amp;gt; Scripting Index' and search for 'H Line'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:04:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44868#M25662</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-09-20T14:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44872#M25664</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, thanks for quick answer.&lt;/P&gt;&lt;P&gt;I think I'm not so clear in my explanation. I need to plot the values for lower, upper and average lines.&lt;/P&gt;&lt;P&gt;See below the example that I'm looking for. In the left, the software that I used in the past.&lt;/P&gt;&lt;P&gt;If I can plot the values from Show Summaries Limits table, I can remove the table to report (the best layout to put in a presentation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="charts.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7692i7CA9D2FA9385335C/image-size/large?v=v2&amp;amp;px=999" role="button" title="charts.png" alt="charts.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:32:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44872#M25664</guid>
      <dc:creator>vjalvim</dc:creator>
      <dc:date>2017-09-20T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44873#M25665</link>
      <description>&lt;P&gt;I'm the one who mis-understood. This topic has come up &lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-add-labels-to-control-limits-and-mean-lines-on-a/td-p/19866" target="_self"&gt;before&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 12:51:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44873#M25665</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-09-20T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44876#M25666</link>
      <description>&lt;P&gt;The values can be added to the chart. &amp;nbsp;If there are not phases, the values are displayed as part of the chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annotate2.PNG" style="width: 481px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7693i1A51A1E91F0149BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="annotate2.PNG" alt="annotate2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But if the data has phases, the values, as you are pointing out are in a table next to the chart, and you want them on the chart. &amp;nbsp;If your old software allowed you to manually add the values, then you can do the same within JMP by just annotating the chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="annotate.PNG" style="width: 672px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7694i2B8E5319E5C70691/image-size/large?v=v2&amp;amp;px=999" role="button" title="annotate.PNG" alt="annotate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need this programatically done, then a script could be used to simply read the values from the displayed table and placed onto the IR chart. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed in your example from your old software, that only one set of limits were displayed, even though it appeared that there were different phases. &amp;nbsp;Was that because the limits were the same for all phases?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:28:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44876#M25666</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-20T13:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44892#M25674</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;So, the old software that I used in the past is Minitab.&lt;/P&gt;&lt;P&gt;Answering your question, the values are ploted automatically from the software and also by phase (see the picture below).&lt;/P&gt;&lt;P&gt;In the example that I shared before, there isn't phases.&lt;/P&gt;&lt;P&gt;I know I've assked too much but could you give me direction about how to include these actions (remove table and plot values&amp;nbsp;in the charts) using script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chart.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7695iECACAB6736373524/image-size/large?v=v2&amp;amp;px=999" role="button" title="chart.png" alt="chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:13:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44892#M25674</guid>
      <dc:creator>vjalvim</dc:creator>
      <dc:date>2017-09-20T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44944#M25684</link>
      <description>&lt;P&gt;Here is a very rough script that will pull the values from the limits table, and place them on the chart. I suggest that you take the time to read the Scripting Guide using the code below to learn exactly how the code does what it does.&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="controlchart.PNG" style="width: 674px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7734i0DCB2A16045F7844/image-size/large?v=v2&amp;amp;px=999" role="button" title="controlchart.PNG" alt="controlchart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Open the sample data table
dt = Open( "$SAMPLE_DATA\Quality Control\Pickles.jmp" );

// There isn't an adequate column to be used as a Phase column in the sample
// data table, so create one
dt &amp;lt;&amp;lt; New Column( "MyPhase", character, formula( Char( Floor( Row() / 13 + 1 ) ) ) );

// Run the control Chart
ct = dt &amp;lt;&amp;lt; Control Chart(
	Phase( :MyPhase ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Acid, Individual Measurement( Phase Level( "1" ), Phase Level( "2" ) ), Moving Range( Phase Level( "1" ), Phase Level( "2" ) ) )
);

// Create a list called byPhase of the each of the Phase values
Summarize( dt, byPhase = by( :MyPhase ) );

// Find the max row for each phase to determine the X position on the chart
// for the placement of the text values
PhaseMaxRowList = {};
For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
	Insert Into( PhaseMaxRowList, Max( dt &amp;lt;&amp;lt; get rows where( :MyPhase == byPhase[i] ) ) )
);

// Add the text to the chart
framebox = Report( ct )[frame box( 1 )];
framebox &amp;lt;&amp;lt; Add Graphics Script(
	Text Color( "Black" );
		
	// Loop across the phases and add the 3 text values by pulling their values from the table
	// and reformating the values
	For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
		LCL = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i )] &amp;lt;&amp;lt; get)[1];
		LCLtxt = "LCL=" || Format( LCL, "Fixed Dec", 5, 2 );
		Avg = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i + N Items( byPhase ) )] &amp;lt;&amp;lt; get)[1];
		Avgtxt = "Avg=" || Format( Avg, "Fixed Dec", 5, 2 );
		UCL = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i + (N Items( byPhase ) * 2) )] &amp;lt;&amp;lt; get)[1];
		UCLtxt = "UCL=" || Format( UCL, "Fixed Dec", 5, 2 );
	
		Text( Center Justified, {PhaseMaxRowList[i] - 2, LCL + .1}, LCLtxt );
		Text( Center Justified, {PhaseMaxRowList[i] - 2, Avg + .1}, Avgtxt );
		Text( Center Justified, {PhaseMaxRowList[i] - 2, UCL + .1}, UCLtxt );
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 03:16:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44944#M25684</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-21T03:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44946#M25685</link>
      <description>&lt;P&gt;Very nice Jim!&lt;/P&gt;
&lt;P&gt;I took the liberty of adding to your code so that there is a separate graphics script for each annotation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-09-21 at 09.42.20.png" style="width: 958px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7735i529B7867913FC326/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-09-21 at 09.42.20.png" alt="Screen Shot 2017-09-21 at 09.42.20.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This makes it possible to move the annotations 'by hand' to avoid any collisions (Right-click on the graphics box, select 'Customize' and edit the x and y values in the scripts to taste).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Open the sample data table
dt = Open( "$SAMPLE_DATA\Quality Control\Pickles.jmp" );

// There isn't an adequate column to be used as a Phase column in the sample
// data table, so create one
dt &amp;lt;&amp;lt; New Column( "MyPhase", character, formula( Char( Floor( Row() / 13 + 1 ) ) ) );

// Run the control Chart
ct = dt &amp;lt;&amp;lt; Control Chart(
	Phase( :MyPhase ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Acid, Individual Measurement( Phase Level( "1" ), Phase Level( "2" ) ), Moving Range( Phase Level( "1" ), Phase Level( "2" ) ) )
);

// Create a list called byPhase of the each of the Phase values
Summarize( dt, byPhase = by( :MyPhase ) );

// Find the max row for each phase to determine the X position on the chart
// for the placement of the text values
PhaseMaxRowList = {};
For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
	Insert Into( PhaseMaxRowList, Max( dt &amp;lt;&amp;lt; get rows where( :MyPhase == byPhase[i] ) ) )
);

// Add the text to the chart
framebox = Report( ct )[frame box( 1 )];
addTxt = Expr(
			framebox &amp;lt;&amp;lt; Add Graphics Script(
						Description( scriptNameTBD ),
						Text Color( "Black" );	
						Text( Center Justified, {xTBD - 2, yTBD + .1}, txtTBD );
						);
			);
// Loop across the phases and add the 3 text values by pulling their values from the table
// and reformating the values
For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
	LCL = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i )] &amp;lt;&amp;lt; get)[1];
	LCLtxt = "LCL=" || Format( LCL, "Fixed Dec", 5, 2 );
	Avg = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i + N Items( byPhase ) )] &amp;lt;&amp;lt; get)[1];
	Avgtxt = "Avg=" || Format( Avg, "Fixed Dec", 5, 2 );
	UCL = (Report( ct )["Individual Measurement of Acid"][Number Col Box( i + (N Items( byPhase ) * 2) )] &amp;lt;&amp;lt; get)[1];
	UCLtxt = "UCL=" || Format( UCL, "Fixed Dec", 5, 2 );
	// Use a separate graphics script for each annotation so that they are more easily moved 'by hand'
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "LCL Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), LCL, Expr(txtTBD), LCLtxt));
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "Avg Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), Avg, Expr(txtTBD), Avgtxt));
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "UCL Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), UCL, Expr(txtTBD), UCLtxt));
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:49:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44946#M25685</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-09-21T08:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44953#M25690</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Very nice addition!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 12:24:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/44953#M25690</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-21T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45065#M25752</link>
      <description>&lt;P&gt;I tried the JSL on my Mac JMP 11. However it seems still the texts have been successfully added into the chart. In log window, i get the following error information and said that can not caluate out &amp;nbsp;subscript. Can you give me an explantion?&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;For( i = 1, i &amp;lt;= N Items( byPhase ), i++,&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;LCL = (Report( ct )[/*###*/"Individual Measurement of Acid"][Number Col Box( i )&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;] &amp;lt;&amp;lt; get)[1];&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 04:27:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45065#M25752</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2017-09-24T04:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45066#M25753</link>
      <description>&lt;P&gt;I have neither the access to JMP 11 or to a Mac, so I will need your help. &amp;nbsp;The message is pointing to a piece of code that is attemping to read the LCL from the displayed output table. &amp;nbsp;Can you please provide the image of the table that was generated by the control chart that has the limits in it?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 12:49:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45066#M25753</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-24T12:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45068#M25755</link>
      <description>&lt;P&gt;The JSL is the same as you posted before. You can find the table image here. As you see that the text for LCL, UCL and Average have not been added.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 01:12:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45068#M25755</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2017-09-25T01:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45070#M25756</link>
      <description>&lt;P&gt;The script is looking for a specific Outline Box with the title, in English, of "Individual Measurement of Acid".&amp;nbsp; Your output is obviously not in English.&amp;nbsp;&amp;nbsp;The below script changes the reference to Outline Box(2).&amp;nbsp; This is an absolute reference to the outline box, while "Individual Measurement of Acid" is a relative reference.&amp;nbsp; You could also try replacing "Individual Measurement of Acid" with&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chinese.GIF" style="width: 219px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7766i73BE04C483E7A9E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="chinese.GIF" alt="chinese.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Open the sample data table
dt = Open( "$SAMPLE_DATA\Quality Control\Pickles.jmp" );

// There isn't an adequate column to be used as a Phase column in the sample
// data table, so create one
dt &amp;lt;&amp;lt; New Column( "MyPhase", character, formula( Char( Floor( Row() / 13 + 1 ) ) ) );

// Run the control Chart
ct = dt &amp;lt;&amp;lt; Control Chart(
	Phase( :MyPhase ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Acid, Individual Measurement( Phase Level( "1" ), Phase Level( "2" ) ), Moving Range( Phase Level( "1" ), Phase Level( "2" ) ) )
);

// Create a list called byPhase of the each of the Phase values
Summarize( dt, byPhase = by( :MyPhase ) );

// Find the max row for each phase to determine the X position on the chart
// for the placement of the text values
PhaseMaxRowList = {};
For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
	Insert Into( PhaseMaxRowList, Max( dt &amp;lt;&amp;lt; get rows where( :MyPhase == byPhase[i] ) ) )
);

// Add the text to the chart
framebox = Report( ct )[frame box( 1 )];
addTxt = Expr(
			framebox &amp;lt;&amp;lt; Add Graphics Script(
						Description( scriptNameTBD ),
						Text Color( "Black" );	
						Text( Center Justified, {xTBD - 2, yTBD + .1}, txtTBD );
						);
			);
// Loop across the phases and add the 3 text values by pulling their values from the table
// and reformating the values
For( i = 1, i &amp;lt;= N Items( byPhase ), i++,
	LCL = (Report( ct )[Outline Box(2)][Number Col Box( i )] &amp;lt;&amp;lt; get)[1];
	LCLtxt = "LCL=" || Format( LCL, "Fixed Dec", 5, 2 );
	Avg = (Report( ct )[Outline Box(2)][Number Col Box( i + N Items( byPhase ) )] &amp;lt;&amp;lt; get)[1];
	Avgtxt = "Avg=" || Format( Avg, "Fixed Dec", 5, 2 );
	UCL = (Report( ct )[Outline Box(2)][Number Col Box( i + (N Items( byPhase ) * 2) )] &amp;lt;&amp;lt; get)[1];
	UCLtxt = "UCL=" || Format( UCL, "Fixed Dec", 5, 2 );
	// Use a separate graphics script for each annotation so that they are more easily moved 'by hand'
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "LCL Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), LCL, Expr(txtTBD), LCLtxt));
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "Avg Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), Avg, Expr(txtTBD), Avgtxt));
	Eval(Substitute(NameExpr(addTxt), Expr(scriptNameTBD), "UCL Text "||Char(i), Expr(xTBD), PhaseMaxRowList[i], Expr(yTBD), UCL, Expr(txtTBD), UCLtxt));
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 02:00:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45070#M25756</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-25T02:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45113#M25787</link>
      <description>Thank you. I checked in English pickle sample data still no success. I step to step to run the scrip and get the following report after i run Summarize( dt/*###*/, byPhase = by( :MyPhase ) ). I translate the log into English for you. Do you believe there is some wrong there?&lt;BR /&gt;&lt;BR /&gt;必须是赋值运算符 正在访问或计算“dt”, dt/*###*/&lt;BR /&gt;Must use assignment operator in visiting "dt"&lt;BR /&gt;在以下脚本中，使用 /*###*/ 标记错误&lt;BR /&gt;in the following script, use /*###*/ to mark error&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Sep 2017 03:15:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45113#M25787</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2017-09-26T03:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45122#M25793</link>
      <description>&lt;P&gt;The syntax of the "Summarize()" function has changed in the recent versions of JMP. &amp;nbsp;It seems that might be the issue. &amp;nbsp;Change the statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Summarize( dt, byPhase = by( :MyPhase ) );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Summarize( &amp;nbsp;byPhase = by( :MyPhase ) );&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 11:21:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45122#M25793</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-26T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting lower / upper limits and average in a control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45123#M25794</link>
      <description>Thank you,Jim. It works now!</description>
      <pubDate>Tue, 26 Sep 2017 12:38:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Plotting-lower-upper-limits-and-average-in-a-control-chart/m-p/45123#M25794</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2017-09-26T12:38:21Z</dc:date>
    </item>
  </channel>
</rss>

