<?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 code to change the &amp;quot;view&amp;quot; for a graph builder plot with X grouping? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473484#M71812</link>
    <description>&lt;P&gt;very creative workaround :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Mar 2022 08:54:30 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2022-03-27T08:54:30Z</dc:date>
    <item>
      <title>jsl code to change the "view" for a graph builder plot with X grouping?</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473390#M71798</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the "group X" option generates 2 plots, one for "F" and one for "M".&lt;/P&gt;&lt;P&gt;The option "First View Level" can be used to specify which "view" to start with , here:&amp;nbsp; "M" (2nd view).&lt;/P&gt;&lt;P&gt;is there a JSL code to prgrammatically change the "view", something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gr &amp;lt;&amp;lt; Set X View Level (1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


gr = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ), Group X( :sex, N View Levels( 1 ),First View Level( 2 ) ) ),
	Elements( Points( X, Y, Legend( 20 ) ), Smoother( X, Y, Legend( 21 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The idea:&lt;BR /&gt;- selection of a data point is (in another graph) triggers the plot to show the respective subgroup&lt;BR /&gt;- the user still has the possibility to go to another subgroup&lt;/P&gt;&lt;P&gt;- in the giu, "X group" is much small than a local data filter&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:23:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473390#M71798</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-11T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: jsl code to change the "view" for a graph builder plot with X grouping?</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473409#M71799</link>
      <description>&lt;P&gt;I'm not sure if this is only method, but you might have to manipulate Variables.&lt;/P&gt;
&lt;P&gt;Here is one example, it first adds new grouping variable and then deletes variable in index 3 which in this case is the "old" grouping.&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:height), Y(:weight), Group X(:sex, N View Levels(1), First View Level(2))),
	Elements(Points(X, Y, Legend(20)), Smoother(X, Y, Legend(21)))
);

gbb = Report(gb)[Graph Builder Box(1)];
wait(2);
//gbb &amp;lt;&amp;lt; get variables;
gbb &amp;lt;&amp;lt; Add Variable({:sex, Role("Group X"), Position(1), N View Levels(1), First View Level(1)});
gbb &amp;lt;&amp;lt; Remove Variable(3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;
&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 20:24:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473409#M71799</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-26T20:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: jsl code to change the "view" for a graph builder plot with X grouping?</title>
      <link>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473484#M71812</link>
      <description>&lt;P&gt;very creative workaround :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 08:54:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/jsl-code-to-change-the-quot-view-quot-for-a-graph-builder-plot/m-p/473484#M71812</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-03-27T08:54:30Z</dc:date>
    </item>
  </channel>
</rss>

