<?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: Rescaling Y-axis in Control Charts based on LSL or USL in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801546#M97723</link>
    <description>&lt;P&gt;For example in this control chart start the scale from 150 instead from 0. I would th y axis to change proportional with the LSL and USL&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 10:32:54 GMT</pubDate>
    <dc:creator>ConvergentWhale</dc:creator>
    <dc:date>2024-09-24T10:32:54Z</dc:date>
    <item>
      <title>Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801521#M97716</link>
      <description>&lt;P class=""&gt;Hello everyone,&lt;/P&gt;&lt;P class=""&gt;I've been working on control charts in JMP and I'm looking to rescale the Y-axis based on the Lower Specification Limit (LSL) or Upper Specification Limit (USL). Could someone guide me on how to achieve this in JMP? I want the Y-axis to dynamically adjust based on the LSL or USL to better visualize the data in relation to the specification limits.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:16:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801521#M97716</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-24T09:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801538#M97719</link>
      <description>&lt;P&gt;Have those (LSL and/or USL) been set to spec limit column properties? If not, how does your data look like and where are the limits stored?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:29:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801538#M97719</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801543#M97720</link>
      <description>&lt;P&gt;Yes the LSL and USL been set to spec limit column properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;his is achieved using the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;set property&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;function on the columns of the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dtsplitcopy&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;data table. The script retrieves the limit values from another table (&lt;/SPAN&gt;&lt;CODE&gt;pIDlimits_copy&lt;/CODE&gt;&lt;SPAN&gt;) and then uses these values to set the spec limits and control limits for the corresponding columns in&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dtsplitcopy&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;using the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;set property&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:35:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801543#M97720</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-24T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801544#M97721</link>
      <description>&lt;DIV&gt;Here is the part of the script :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		// Get the column names from the split data table, which are really the different release results
		cols = dtsplitcopy &amp;lt;&amp;lt; get column names( string );

		// Loop across the split data table and read the values for that column from the dt_limits_copy data table. Populate the Spec Limits and Control Limits
		For( i = 1, i &amp;lt;= N Cols( dtsplitcopy ), i++, 

			   limrow = Try( (pIDlimits_copy &amp;lt;&amp;lt; get rows where( pIDlimits_copy:labelny == cols[i] ))[1], . ); 

			   If( Is Missing( limRow ) == 0, 
					specs = {LSL( . ), USL( . ), Target( . ), Show Limits( 1 )}; 

					specs["LSL"] = pIDlimits_copy:Lower Limit Value[limrow]; 
					specs["USL"] = pIDlimits_copy:Upper Limit value[limrow]; 
					
					Column( dtsplitcopy, Char( cols[i] ) ) &amp;lt;&amp;lt; set property( "spec limits", Eval( specs ) ); 

					controllimits = {Individual Measurement( Avg( a ), LCL( b ), UCL( c ) )}; 
					
					// If lower limit is missing it is set to mean - (UCL - mean) = 2*mean - UCL as this will fix issues with zones otherwise being wrong if set to missing
					Substitute Into( controllimits, Expr( b ), if(ismissing(pIDlimits_copy:Lower_Control_Limit[limrow]), 2*pIDlimits_copy:Mean_Plot[limrow] - pIDlimits_copy:Upper_Control_Limit[limrow], pIDlimits_copy:Lower_Control_Limit[limrow])); // this is done to get correct zones
					Substitute Into( controllimits, Expr( c ), pIDlimits_copy:Upper_Control_Limit[limrow] ); 
					Substitute Into( controllimits, Expr( a ), pIDlimits_copy:Mean_Plot[limrow] ); 
					
					Column( dtsplitcopy, Char( cols[i] ) ) &amp;lt;&amp;lt; set property( "control limits", Eval( controllimits ) );
					// These notes are added so that later we can choose to hide the "artificial lower limits" which is only included for the zones to be correct
					Column( dtsplitcopy, char( cols[i] ) ) &amp;lt;&amp;lt; set property( "notes", if(ismissing(pIDlimits_copy:Lower_Control_Limit[limrow]),"Only one limit","Two limits")); 
			   ); 
		);
		
		dtsplitcopy &amp;lt;&amp;lt; sort( by( Date ), Replace Table );

		n_vars = N Items(cols);
		// Create window for a control chart for all parameters of a given product from a given site
		NW = New Window(sitename || " " || prod_ID || " Report",
			For( v = 39, v &amp;lt;= n_vars, v += 1, //changed from column 38 to 39 to avoid 'Date' being printet as well. 
				
				tmp = :column(v) &amp;lt;&amp;lt; get property("notes");
				
				Control Chart Builder(
					Show Two Shewhart Charts( 0 ),
					Show Control Panel( 0 ),
					Include Missing Categories( 0 ),
					Name( "AIAG (Ppk) Labeling" )(1),
					Variables( Y( :Column(v)) ),
					Chart(
						Points( Statistic( "Individual" ) ),
						Limits( Show Lower Limit( tmp == "Two limits" ), Sigma( "Moving Range" ), Zones( 1 ) ),
						Warnings( Test 1( 0 ), Test 5( 1 ), Test Beyond Limits( 1 ) )
					),
				)
			);
			
			vlb = V List Box( ob = Outline Box("Cpk estimates and print of data") )
		);
		&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 09:35:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801544#M97721</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-24T09:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801545#M97722</link>
      <description>&lt;P&gt;What type of scaling are you looking for? If I remember correctly control chart builder does scale based on specification limits if they have been set.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:23:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801545#M97722</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801546#M97723</link>
      <description>&lt;P&gt;For example in this control chart start the scale from 150 instead from 0. I would th y axis to change proportional with the LSL and USL&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:32:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801546#M97723</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-24T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rescaling Y-axis in Control Charts based on LSL or USL in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801567#M97724</link>
      <description>&lt;P&gt;This might give some ideas&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

colname = "height";

Column(dt, colname) &amp;lt;&amp;lt; Set Property("Spec Limits", {LSL(30), USL(100), Show Limits(1)});

ccb = dt &amp;lt;&amp;lt; Control Chart Builder(
	Variables(Y(Eval(colname))),
	Chart(Position(1), Limits(Spec Limits(1))),
	Show Control Panel(0)
);

specs = Column(dt, colname) &amp;lt;&amp;lt; Get Property("Spec Limits");

Report(ccb)[AxisBox(2)] &amp;lt;&amp;lt; Min(specs["LSL"]) &amp;lt;&amp;lt; Max(specs["USL"]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2024 11:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rescaling-Y-axis-in-Control-Charts-based-on-LSL-or-USL-in-JMP/m-p/801567#M97724</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-24T11:50:56Z</dc:date>
    </item>
  </channel>
</rss>

