<?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: Script for distribution plot ( multiple column and group by row name) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642815#M83951</link>
    <description>&lt;P&gt;hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt respond. I would like to generate a script which I can reused that for other data type ( different column name). Is there any way I can automate that using script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 13:09:18 GMT</pubDate>
    <dc:creator>mylifemyrule</dc:creator>
    <dc:date>2023-06-15T13:09:18Z</dc:date>
    <item>
      <title>Script for distribution plot ( multiple column and group by row name)</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642796#M83948</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a script for below distribution. Where should I edit in the script to have "by" grouping.&lt;/P&gt;&lt;P&gt;And if I just want to display&amp;nbsp;lot_id=lot01 how can I filter that in the script&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mylifemyrule_0-1686831450787.png" style="width: 432px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53882i2DCC034EBB71A8D5/image-dimensions/432x205?v=v2" width="432" height="205" role="button" title="mylifemyrule_0-1686831450787.png" alt="mylifemyrule_0-1686831450787.png" /&gt;&lt;/span&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if anyone can help me on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this script from&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Script-multiple-columns-grouped-in-distribution-plot/m-p/162798#M40093" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Script-multiple-columns-grouped-in-distribution-plot/m-p/162798#M40093&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:22:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642796#M83948</guid>
      <dc:creator>mylifemyrule</dc:creator>
      <dc:date>2023-06-15T12:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script for distribution plot ( multiple column and group by row name)</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642797#M83949</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/semiconductor capability.jmp");

colList = dt &amp;lt;&amp;lt; get column names(continuous,string);
// For this illustration I want to use just the NPNn columns
for(i=nitems(colList), i&amp;gt;=1,i--,
	If(substr(colList[i],1,3)!="NPN", remove from(colList,i,1))
);

// build the JSL string
theExpr = 
"Dis = Distribution(
		Continuous Distribution( Column( :" || colList[1] || " ), 
		Process Capability( Use Column Property Specs ) )";
For( i = 2, i &amp;lt;= N Items( colList ), i++,
	theExpr = theExpr || "," || "Continuous Distribution( Column( :" || colList[i] ||
	" ), Process Capability( Use Column Property Specs ) )"
);
theExpr=theExpr||");";

// run the built JSL string
eval(parse(theexpr));

// Standardize the settings
disr = Dis &amp;lt;&amp;lt; report;

disr[colList[1]]["Quantiles"]&amp;lt;&amp;lt;close all like this;
disr[colList[1]]["Summary Statistics"]&amp;lt;&amp;lt;close all like this;
disr[colList[1]]["Process Capability"]&amp;lt;&amp;lt;close all like this;

For(i=1,i&amp;lt;=nitems(colList),i++,
	disr[colList[i]][AxisBox(1)] &amp;lt;&amp;lt; min(87) &amp;lt;&amp;lt; max(127) &amp;lt;&amp;lt; inc(5)
	&amp;lt;&amp;lt; Add Ref Line( 121, "Solid","Black","",1)
	&amp;lt;&amp;lt; Add Ref Line( 100, "Solid", "Black", "", 1 )
	&amp;lt;&amp;lt; Add Ref Line( 90, "Solid", "Black", "", 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here the script&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:23:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642797#M83949</guid>
      <dc:creator>mylifemyrule</dc:creator>
      <dc:date>2023-06-15T12:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script for distribution plot ( multiple column and group by row name)</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642801#M83950</link>
      <description>&lt;P&gt;&lt;STRONG&gt;All you have to do is to run the Distribution platform as you want it to be, and then go to the red triangle and select&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; "Save By Group Script"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1686833513285.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53883iD9A8A18BC459FC35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1686833513285.png" alt="txnelson_0-1686833513285.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and it will give you the script with the By element included.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :NPN1 ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Process Capability( Use Column Property Specs )
	),
	By( :lot_id )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:53:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642801#M83950</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-15T12:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script for distribution plot ( multiple column and group by row name)</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642815#M83951</link>
      <description>&lt;P&gt;hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your prompt respond. I would like to generate a script which I can reused that for other data type ( different column name). Is there any way I can automate that using script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:09:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642815#M83951</guid>
      <dc:creator>mylifemyrule</dc:creator>
      <dc:date>2023-06-15T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script for distribution plot ( multiple column and group by row name)</title>
      <link>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642852#M83955</link>
      <description>&lt;P&gt;The script that you displayed from a previous Discussion is an example of dynamically generating Distributions, by finding the column names in the data table it is pointing at, and then running those distributions.&amp;nbsp; Assuming you are familiar with programming, you should be able to follow the script.&amp;nbsp; Any of the functions used can be looked up in the Scripting Index, where a definition and usage example(s) are shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you work to perfect your script, the Community will always be there to help you with issues you may come across.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:39:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-for-distribution-plot-multiple-column-and-group-by-row/m-p/642852#M83955</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-15T13:39:46Z</dc:date>
    </item>
  </channel>
</rss>

