<?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: JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control ch in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85911#M38378</link>
    <description>&lt;P&gt;Your Add Ref Line syntax is incorrect.&amp;nbsp; It either has to be enclosed in the Oneway platform definition as a "Send to Report" structure, or added after the fact, sending an Add Ref Line message to the Reports AxisBox, as I have showned below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
Summarize( groupid = by( :Col A ) );

map_l = Associative Array( :Col A, :LCL );
map_u = Associative Array( :Col A, :UCL );


For( i = 1, i &amp;lt;= N Items( groupid ), i++, 

	idname = Char( groupid[i] );
 
	
	df = dt &amp;lt;&amp;lt; Oneway(
		Y( :Y ),
		X( :X ),
		Box Plots( 1 ),
		Mean Diamonds( 1 ),
		Where( :Col A == idname )
	);
	Report( df )[AxisBox( 1 )] &amp;lt;&amp;lt;
	Add Ref Line( map_u[idname], "Dashed", "Black", "UCL", 1 );
	Report( df )[AxisBox( 1 )] &amp;lt;&amp;lt;
	Add Ref Line( map_l[idname], "Dashed", "Black", "LCL", 1 );			
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 16 Dec 2018 03:55:30 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-12-16T03:55:30Z</dc:date>
    <item>
      <title>JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85892#M38362</link>
      <description>&lt;P&gt;I have a JMP table with say 5 cols&lt;/P&gt;&lt;P&gt;ColA is categrical column. ColA can have different group of values. However for each group of values from ColA LCL &amp;amp; UCL are same I mean like this:(say)&lt;/P&gt;&lt;P&gt;Sample data with just 2 groups from Col A&lt;/P&gt;&lt;P&gt;Col A&amp;nbsp;&amp;nbsp; LCL&amp;nbsp; UCL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PQR1&lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp; PQR2&lt;/P&gt;&lt;P&gt;b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC1&lt;/P&gt;&lt;P&gt;b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC1&lt;/P&gt;&lt;P&gt;b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to plot Y vs X ( box plot say in this case) by Col A . So this should geneate two plots ( one for a and other for b). However I want to create a JSL script to create the two different control charts for each plot. For the case a ( 5,10) and for case b ( 17, 25).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is simple in JMP. But in my case I am generating data on the fly and I will not know how many groups and what are the LCL/UCL. So need to have a script to accomplish that. Trying to understand how to solve this problem using JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 00:33:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85892#M38362</guid>
      <dc:creator>indymitra</dc:creator>
      <dc:date>2018-12-15T00:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control ch</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85909#M38376</link>
      <description>There are different Control Limits for the different charts, and they each need to be set within the column for them to take affect for the chart.  Will you always be using a specific type of chart, or would you need to set the limits from your table to each of the limit types(XBar, Individual...…)?  Will you be using the Control Chat Builder platform, or the Control Chart platform?</description>
      <pubDate>Sat, 15 Dec 2018 22:34:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85909#M38376</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-15T22:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control ch</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85910#M38377</link>
      <description>&lt;P&gt;Thanks, Jim...&lt;/P&gt;&lt;P&gt;Well, I will always be plotting my Y vs X based on the grouped column ( in this case Col A say)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was not planning to use any platform yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way I was targeting the problem is to create an associative array based on the group and then create a loop. But that is not working too. I have pasted the snippet of the code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
summarize(groupid=by(:Col A));

map_l = Associative Array( :Col A, :LCL );
map_u = Associative Array( :Col A, :UCL );


for(i=1, i&amp;lt;= N Items(groupid), i++,

  idname = char(groupid[i]);
 
  df = dt &amp;lt;&amp;lt; Oneway(
	Y( :Y ),
	X( :X ),
	Box Plots( 1 ),
	Mean Diamonds( 1 ),
	Where( :Col A == idname ),
	Add Ref Line(map_u[idname] , "Dashed", "Black", "UCL", 1 ),
	Add Ref Line(map_l[idname] , "Dashed", "Black", "LCL", 1 )
	
	
)

)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 02:41:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85910#M38377</guid>
      <dc:creator>tnodd</dc:creator>
      <dc:date>2018-12-16T02:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control ch</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85911#M38378</link>
      <description>&lt;P&gt;Your Add Ref Line syntax is incorrect.&amp;nbsp; It either has to be enclosed in the Oneway platform definition as a "Send to Report" structure, or added after the fact, sending an Add Ref Line message to the Reports AxisBox, as I have showned below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
Summarize( groupid = by( :Col A ) );

map_l = Associative Array( :Col A, :LCL );
map_u = Associative Array( :Col A, :UCL );


For( i = 1, i &amp;lt;= N Items( groupid ), i++, 

	idname = Char( groupid[i] );
 
	
	df = dt &amp;lt;&amp;lt; Oneway(
		Y( :Y ),
		X( :X ),
		Box Plots( 1 ),
		Mean Diamonds( 1 ),
		Where( :Col A == idname )
	);
	Report( df )[AxisBox( 1 )] &amp;lt;&amp;lt;
	Add Ref Line( map_u[idname], "Dashed", "Black", "UCL", 1 );
	Report( df )[AxisBox( 1 )] &amp;lt;&amp;lt;
	Add Ref Line( map_l[idname], "Dashed", "Black", "LCL", 1 );			
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Dec 2018 03:55:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85911#M38378</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-16T03:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Script for creating Multiple Plots for Y vs X by A with a Limits  Table to create control ch</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85915#M38382</link>
      <description>Wonderful!! Worked like a charm!!! Thanks</description>
      <pubDate>Sun, 16 Dec 2018 15:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Script-for-creating-Multiple-Plots-for-Y-vs-X-by-A-with-a/m-p/85915#M38382</guid>
      <dc:creator>tnodd</dc:creator>
      <dc:date>2018-12-16T15:55:22Z</dc:date>
    </item>
  </channel>
</rss>

