<?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: different spec limits for different variability plots in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/different-spec-limits-for-different-variability-plots/m-p/496734#M73435</link>
    <description>&lt;P&gt;To accomplish this you will need to use &amp;lt;&amp;lt; Add Graphics Script to the Variability Chart, that reads the LSL and USL values an then adds them as lines to the chart.&amp;nbsp; The script below is an example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1654058179566.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42828i5B90917BDBB10017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1654058179566.png" alt="txnelson_0-1654058179566.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = New Table( "Example",
	Add Rows( 12 ),
	New Column( "age", "Ordinal", Format( "Fixed Dec", 5, 0 ), Set Values( [12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17] ) ),
	New Column( "sex", Character( 1 ), "Nominal", Set Values( {"F", "M", "F", "M", "F", "M", "F", "M", "F", "M", "F", "M"} ) ),
	New Column( "Height",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 1 ),
		Set Values( [58.6, 57.3333333333333, 59, 61.25, 62.6, 65.2857142857143, 63, 65.2, 62.5, 68, 62, 69] )
	),
	New Column( "LSL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [45, 45, 50, 50, 57, 57, 60, 60, 60.5, 60.5, 61, 61] )
	),
	New Column( "USL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [60, 60, 65, 65, 67, 67, 70, 70, 72, 72, 75, 75] )
	)
);

vc = Variability Chart( Y( :Height ), X( :age, :sex ), Std Dev Chart( 0 ) );
Report( vc )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		xstart = (:age[i] - Col Min( :age )) * 2;
		If( :sex[i] == "M",
			xstart = xstart + 1
		);
		Pen Color( blue );
		Pen Size( 2 );
		yMat = Matrix( :LSL[i] || :LSL[i] );
		xMat = Matrix( xstart || xstart + 1 );
		Line( xMat, yMat );
		yMat = Matrix( :USL[i] || :USL[i] );
		Line( xMat, yMat );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Jun 2022 04:41:09 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-06-01T04:41:09Z</dc:date>
    <item>
      <title>different spec limits for different variability plots</title>
      <link>https://community.jmp.com/t5/Discussions/different-spec-limits-for-different-variability-plots/m-p/496710#M73434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create variability plots and show spec limits with values specified in LCL and UCL columns. I need different spec values for within graph (based on ROUTE_TYPE column, FL and SL have different limits) and for 2nd variability plot (for OVL_UNL parameter, L2_L1 has different FL/SL limits vs L3_L2)&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="newbie_4_0-1654052479783.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42826iCE3F47B0FB354216/image-size/medium?v=v2&amp;amp;px=400" role="button" title="newbie_4_0-1654052479783.png" alt="newbie_4_0-1654052479783.png" /&gt;&lt;/span&gt;&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="newbie_4_1-1654052750239.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42827iBA2CAEA495B5D043/image-size/medium?v=v2&amp;amp;px=400" role="button" title="newbie_4_1-1654052750239.png" alt="newbie_4_1-1654052750239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/different-spec-limits-for-different-variability-plots/m-p/496710#M73434</guid>
      <dc:creator>newbie_4</dc:creator>
      <dc:date>2023-06-09T17:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: different spec limits for different variability plots</title>
      <link>https://community.jmp.com/t5/Discussions/different-spec-limits-for-different-variability-plots/m-p/496734#M73435</link>
      <description>&lt;P&gt;To accomplish this you will need to use &amp;lt;&amp;lt; Add Graphics Script to the Variability Chart, that reads the LSL and USL values an then adds them as lines to the chart.&amp;nbsp; The script below is an example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1654058179566.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42828i5B90917BDBB10017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1654058179566.png" alt="txnelson_0-1654058179566.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = New Table( "Example",
	Add Rows( 12 ),
	New Column( "age", "Ordinal", Format( "Fixed Dec", 5, 0 ), Set Values( [12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17] ) ),
	New Column( "sex", Character( 1 ), "Nominal", Set Values( {"F", "M", "F", "M", "F", "M", "F", "M", "F", "M", "F", "M"} ) ),
	New Column( "Height",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 1 ),
		Set Values( [58.6, 57.3333333333333, 59, 61.25, 62.6, 65.2857142857143, 63, 65.2, 62.5, 68, 62, 69] )
	),
	New Column( "LSL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [45, 45, 50, 50, 57, 57, 60, 60, 60.5, 60.5, 61, 61] )
	),
	New Column( "USL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [60, 60, 65, 65, 67, 67, 70, 70, 72, 72, 75, 75] )
	)
);

vc = Variability Chart( Y( :Height ), X( :age, :sex ), Std Dev Chart( 0 ) );
Report( vc )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		xstart = (:age[i] - Col Min( :age )) * 2;
		If( :sex[i] == "M",
			xstart = xstart + 1
		);
		Pen Color( blue );
		Pen Size( 2 );
		yMat = Matrix( :LSL[i] || :LSL[i] );
		xMat = Matrix( xstart || xstart + 1 );
		Line( xMat, yMat );
		yMat = Matrix( :USL[i] || :USL[i] );
		Line( xMat, yMat );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 04:41:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/different-spec-limits-for-different-variability-plots/m-p/496734#M73435</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-01T04:41:09Z</dc:date>
    </item>
  </channel>
</rss>

