<?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 how to loop through by variable while plotting variable plots in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226839#M45008</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to plot multiple variable charts where Y axis is different columns containing MIP in the column name.I have a column called step name and I need these plots for different step names.&lt;/P&gt;&lt;P&gt;Eg: MIP1 for stepA and stepB and so on.&lt;/P&gt;&lt;P&gt;I can use "By" variable while creating the plots.But how do I extend this to multiple steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "C:\REPORT.csv" );
a = "MIP_";
col = dt &amp;lt;&amp;lt; get column names( string );
nc = N Items( col );
theo_params = {};
For( i = 1, i &amp;lt;= nc, i++,
If( Contains( col[i], a ),
Insert Into( theo_params, col[i] )
)
);

Print(theo_params);





nw = New Window( "theo data", container = V List Box() );

For ( i=1, i&amp;lt;=N items(theo_params), i++,
content = V List Box(
dt &amp;lt;&amp;lt; Variability Chart(
Y( Column(dt,theo_params[i]) ),
X( :CAUSE,:M_ID, :S_ID, :HEAD_ID ),
Show Range Bars( 0 ),
Show Cell Means( 0 ),
Std Dev Chart( 0 ),
SendToReport(
Dispatch(
{__VarChart__},
"2",


)
)
)




);
container &amp;lt;&amp;lt; Append(content)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Sep 2019 23:32:39 GMT</pubDate>
    <dc:creator>ENTHU</dc:creator>
    <dc:date>2019-09-23T23:32:39Z</dc:date>
    <item>
      <title>how to loop through by variable while plotting variable plots</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226839#M45008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to plot multiple variable charts where Y axis is different columns containing MIP in the column name.I have a column called step name and I need these plots for different step names.&lt;/P&gt;&lt;P&gt;Eg: MIP1 for stepA and stepB and so on.&lt;/P&gt;&lt;P&gt;I can use "By" variable while creating the plots.But how do I extend this to multiple steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "C:\REPORT.csv" );
a = "MIP_";
col = dt &amp;lt;&amp;lt; get column names( string );
nc = N Items( col );
theo_params = {};
For( i = 1, i &amp;lt;= nc, i++,
If( Contains( col[i], a ),
Insert Into( theo_params, col[i] )
)
);

Print(theo_params);





nw = New Window( "theo data", container = V List Box() );

For ( i=1, i&amp;lt;=N items(theo_params), i++,
content = V List Box(
dt &amp;lt;&amp;lt; Variability Chart(
Y( Column(dt,theo_params[i]) ),
X( :CAUSE,:M_ID, :S_ID, :HEAD_ID ),
Show Range Bars( 0 ),
Show Cell Means( 0 ),
Std Dev Chart( 0 ),
SendToReport(
Dispatch(
{__VarChart__},
"2",


)
)
)




);
container &amp;lt;&amp;lt; Append(content)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2019 23:32:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226839#M45008</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-09-23T23:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to loop through by variable while plotting variable plots</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226849#M45009</link>
      <description>&lt;P&gt;If you can make the plot you want using the Variability Chart tool (or anywhere else in JMP), you can always extract the script to do it from the little red triangle menu and find which part of the code corresponds to the changes you made. If I'm reading your question right, I think you want to insert a Where() argument in the Variability Chart function. If you had a step_list variable and you were looping over it with j as an index variable, it'd look something like this in each call to Variability Chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;...
Y( Column(dt,theo_params[i]) ),
X( :CAUSE,:M_ID, :S_ID, :HEAD_ID ),
Where(:Step Name == step_list[j]),
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 00:17:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226849#M45009</guid>
      <dc:creator>MichelleG</dc:creator>
      <dc:date>2019-09-24T00:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to loop through by variable while plotting variable plots</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226850#M45010</link>
      <description>&lt;P&gt;Below is a real simple expansion on your specified method.&amp;nbsp; It shows one way to develop output with more than one platform, across multiple columns.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

colNamesList = dt &amp;lt;&amp;lt; get column names( continuous, string );

nw = New Window( "theo data", V List Box( hlb1 = H List Box(), hlb2 = H List Box() ) );

For( i = 1, i &amp;lt;= N Items( colNamesList ), i++,
	discontent = V List Box(
		Distribution(
			Continuous Distribution( Column( Column( dt, colNamesList[i] ) ) )
		)
	);
	hlb1 &amp;lt;&amp;lt; append( discontent );
	onewaycontent = V List Box(
		oneway( x( :sex ), y( Column( dt, colNamesList[i] ) ) )
	);
	hlb2 &amp;lt;&amp;lt; append( onewaycontent );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 03:05:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226850#M45010</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-09-24T03:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to loop through by variable while plotting variable plots</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226871#M45012</link>
      <description>&lt;P&gt;I didnt have to use any loop.Just adding By Step name did the trick.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 04:32:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-loop-through-by-variable-while-plotting-variable-plots/m-p/226871#M45012</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-09-24T04:32:49Z</dc:date>
    </item>
  </channel>
</rss>

