<?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: IR Chart label and LCL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55344#M31307</link>
    <description>&lt;P&gt;Thank you that works for the limits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change the name of the IR charts.&amp;nbsp; I produce about 16 to 20 charts in a vertical window.&amp;nbsp; When I create it from the table data they are all labeled with the Sub_name column value, but when I create it from the script they are labeled with "Control Chart" and "Individual Measurement of Mean(Runtime)".&amp;nbsp; I would like each chart to be labeled with the value&amp;nbsp;in &amp;nbsp;UnitNames[i].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Apr 2018 15:33:44 GMT</pubDate>
    <dc:creator>KST-CPT</dc:creator>
    <dc:date>2018-04-22T15:33:44Z</dc:date>
    <item>
      <title>IR Chart label and LCL</title>
      <link>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55340#M31304</link>
      <description>&lt;P&gt;I have the following script which works well, it creates multiple IR charts based off values in a list generated from the unique values from a datatable.&amp;nbsp; I would like to label each chart the same as the value in the list it was generated from.&amp;nbsp; I would also like to set all my lower control limits to 0.&amp;nbsp; &amp;nbsp;I can't see how to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;summarize(SNTime2, UnitNames = by(Column("Sub_name")));&lt;BR /&gt;count_UnitNames = nitems(UnitNames);&lt;/P&gt;&lt;P&gt;New Window( "M11 Runtime times Summary - Control Chart",&lt;BR /&gt;V List Box(&lt;BR /&gt;for(i=1, i&amp;lt;=count_UnitNames, i++,&lt;BR /&gt;Control Chart(&lt;BR /&gt;Sample Label( :Date ),&lt;BR /&gt;Group Size( 1 ),&lt;BR /&gt;KSigma( 3 ),&lt;BR /&gt;Chart Col( :Name( "Mean(Runtime)" ), Individual Measurement ),&lt;BR /&gt;Where( :Sub_name == UnitNames[i] ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Individual Measurement of Mean(Runtime)"},&lt;BR /&gt;"2",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Format( "hr:m:s", 11, 0 )}&lt;BR /&gt;)));&lt;BR /&gt;);&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 04:47:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55340#M31304</guid>
      <dc:creator>KST-CPT</dc:creator>
      <dc:date>2018-04-22T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: IR Chart label and LCL</title>
      <link>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55342#M31305</link>
      <description>&lt;P&gt;The approaches I took to solve this issue&amp;nbsp;was to use a saved limits table, where only a lower limit with the value of "0" is specified and also an example of specifying the LCL in the IM chart specification.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );

// Setup some sample data
SNTime2 = Open( "$SAMPLE_DATA/Quality Control/Phase Historical Data.jmp" );
SNTime2:Force &amp;lt;&amp;lt; set name("Mean(RunTime)");
SNTime2:Site &amp;lt;&amp;lt; set name("Sub_name") &amp;lt;&amp;lt; data type( character );
SNTime2 &amp;lt;&amp;lt; New Column("Date",format("m/d/y"),formula(today()));

// create a limits table with just a lower limit of zero and save it
dtlim = New Table( "Limits",
	Add Rows( 1 ),
	New Column("_LimitsKey",
		Character( 4 ),
		"Nominal",
		Set Values( {"_LCL"} )
	),
	New Column("Mean(Runtime)",
		Numeric,
		"Continuous",
		Format( "Best", 10 ),
		Set Values( [0] ),
		Set Display Width
	)
);

close( dtlim, save("$TEMP\limits.jmp"));

// Run your code
Summarize( SNTime2, UnitNames = by( Column( "Sub_name" ) ) );
count_UnitNames = N Items( UnitNames );

New Window( "M11 Runtime times Summary - Control Chart",
	V List Box(
		For( i = 1, i &amp;lt;= count_UnitNames, i++,
			Control Chart(
				Sample Label( :Date ),
				Group Size( 1 ),
				KSigma( 3 ),
				Chart Col( :Name( "Mean(Runtime)" ), Individual Measurement ),
				// Read in limits
				Get Limits( "$TEMP\limits.jmp" ),
				Where( :Sub_name == UnitNames[i] ),
				SendToReport(
					Dispatch(
						{"Individual Measurement of Mean(Runtime)"},
						"2",
						ScaleBox,
						{Format( "hr:m:s", 11, 0 )}
					)
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation on limits table usage can be found in the Quality and Process Methods book&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books==&amp;gt;Quality and Process&lt;/P&gt;
&lt;P&gt;and in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Control Chart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also just use the LCL specification on the IM chart to get the same results&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// You can also just use the LCL paramater on the IM specification
Summarize( SNTime2, UnitNames = by( Column( "Sub_name" ) ) );
count_UnitNames = N Items( UnitNames );

New Window( "M11 Runtime times Summary - Control Chart",
	V List Box(
		For( i = 1, i &amp;lt;= count_UnitNames, i++,
			Control Chart(
				Sample Label( :Date ),
				Group Size( 1 ),
				KSigma( 3 ),
				Chart Col( :Name( "Mean(Runtime)" ), Individual Measurement( LCL(0)) ),
				Where( :Sub_name == UnitNames[i] ),
				SendToReport(
					Dispatch(
						{"Individual Measurement of Mean(Runtime)"},
						"2",
						ScaleBox,
						{Format( "hr:m:s", 11, 0 )}
					)
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Apr 2018 12:00:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55342#M31305</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-04-22T12:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: IR Chart label and LCL</title>
      <link>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55344#M31307</link>
      <description>&lt;P&gt;Thank you that works for the limits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change the name of the IR charts.&amp;nbsp; I produce about 16 to 20 charts in a vertical window.&amp;nbsp; When I create it from the table data they are all labeled with the Sub_name column value, but when I create it from the script they are labeled with "Control Chart" and "Individual Measurement of Mean(Runtime)".&amp;nbsp; I would like each chart to be labeled with the value&amp;nbsp;in &amp;nbsp;UnitNames[i].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 15:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55344#M31307</guid>
      <dc:creator>KST-CPT</dc:creator>
      <dc:date>2018-04-22T15:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: IR Chart label and LCL</title>
      <link>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55347#M31308</link>
      <description>&lt;P&gt;I will show you the changes necessary to do what you want, however, I will do it by showing you that you could figure this out all by yourself, because JMP will show you how to do this.&lt;/P&gt;
&lt;P&gt;Your request is to change the name of the Outline Box that is created that repeats the title, &lt;SPAN&gt;"Individual Measurement of Mean(Runtime)".&amp;nbsp; So, the first step is to simply change that title in one of the outputs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runtime1.PNG" style="width: 395px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10459i9D454385C3B93D55/image-size/large?v=v2&amp;amp;px=999" role="button" title="runtime1.PNG" alt="runtime1.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then go to the red triangle and save the script for the changed chart&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Control Chart(
	Sample Label( :Date ),
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Name( "Mean(RunTime)" ), Individual Measurement( LCL( 0 ) ) ),
	Where( :Sub_name == UnitNames[i] ),
	SendToReport(
		Dispatch(
			{},
			"Individual Measurement of Mean(RunTime)",
			OutlineBox,
			{Set Title( "This is the title I want to have" )}
		),
		Dispatch(
			{"Individual Measurement of Mean(RunTime)"},
			"2",
			ScaleBox,
			{Format( "hr:m:s", 13, 0 )}
		),
		Dispatch(
			{"Individual Measurement of Mean(RunTime)"},
			"Control Chart Limits frame",
			FrameBox,
			{Frame Size( 64, 208 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Note how JMP indicated how to change the chart to make the Outline Box title a different name&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dispatch(
			{},
			"Individual Measurement of Mean(RunTime)",
			OutlineBox,
			{Set Title( "This is the title I want to have" )}
		)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Now all you have to do, is to reincorporate this change back into your script, and substitute the title for the UnitNames[i], which is your list entries for your requested Sub_name&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "M11 Runtime times Summary - Control Chart",
	V List Box(
		For( i = 1, i &amp;lt;= count_UnitNames, i++,
			Control Chart(
				Sample Label( :Date ),
				Group Size( 1 ),
				KSigma( 3 ),
				Chart Col( :Name( "Mean(Runtime)" ), Individual Measurement( LCL( 0 ) ) ),
				Where( :Sub_name == UnitNames[i] ),
				SendToReport(
				Dispatch(
					{},
					"Individual Measurement of Mean(RunTime)",
					OutlineBox,
					{Set Title( UnitNames[i] )}
				),
					Dispatch(
						{"Individual Measurement of Mean(Runtime)"},
						"2",
						ScaleBox,
						{Format( "hr:m:s", 11, 0 )}
					)
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:41:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/IR-Chart-label-and-LCL/m-p/55347#M31308</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-04-22T16:41:17Z</dc:date>
    </item>
  </channel>
</rss>

