<?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: How to plot subset of rows together with different subset of same rows? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/607571#M80918</link>
    <description>&lt;P&gt;As a dynamic extension to what Jim recommends, my favorite way to do this is as follows:&lt;/P&gt;
&lt;P&gt;1) add a new column to the table, name it "Selected", make it nominal, and add to it the formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selected ( Row State ( ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This column will have 1 for any selected row, and 0 for any unselected row, and will update automatically as you make various selections.&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="brady_brady_0-1677787678497.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50668i2461EF07EA22A97B/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1677787678497.png" alt="brady_brady_0-1677787678497.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) In graph builder, drag this new "Selected" column to the x-axis.&lt;/P&gt;
&lt;P&gt;If you have no rows selected in your table, you'll get something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_1-1677787810224.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50670iBA398C0A343BAC70/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_1-1677787810224.png" alt="brady_brady_1-1677787810224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) As soon as you select anything (even within this very graph), you'll get this:&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="brady_brady_2-1677787848079.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50672i581311C4CFCCF651/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_2-1677787848079.png" alt="brady_brady_2-1677787848079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly HOW you make the selection, is completely up to you. You can make the selection whatever you wish, and you'll always see what you've selected, vs everything else.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 20:13:08 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2023-03-02T20:13:08Z</dc:date>
    <item>
      <title>How to plot subset of rows together with different subset of same rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/603542#M80667</link>
      <description>&lt;P&gt;Note: I'm trying to do this with the interface only. Haven't tried scripting yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have multiple objects that have a bunch of measurements within each object. There are 6 objects total, numbered 1-6. Per each object, there are a few dozen rows. And the columns list various attributes. The short version of what I want to achieve is that I'd like to have the grouping feature, but instead of one group for each of the 6 objects, I'd like to split the groups up differently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Longer description is as follows. I want to plot one of the attributes (values in one of the columns) for one of the objects and compare that same attribute for all the other objects on the same plot. Let's say I want to plot the values for object 1 in a scatter plot. I have the variable for the value I'm interested in on the y-axis and "Object 1" on the x-axis. Next to it I want to plot the values of all the other 5 objects in the same manner, but I want them clearly separated, so that it's obvious that Object 1 is in a separate group, while the other 5 objects are in a different group. This separation should be at least visual and ideally also allow me to apply separate statistics, like obtaining separate mean, etc., like how the grouping feature functions--the one that is activated by dragging a label to the top x-axis in Graph Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the only method to come up with some new column and create a label for all the 5 objects as one category, and the 1 other object as another category, and then group them by those categories using the grouping feature?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:34:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/603542#M80667</guid>
      <dc:creator>Deez_Data</dc:creator>
      <dc:date>2023-06-08T16:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot subset of rows together with different subset of same rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/603561#M80669</link>
      <description>&lt;P&gt;All you need to do is to create a new column, and in the new column.&amp;nbsp; Try using Recode to do that&lt;/P&gt;
&lt;P&gt;Here is an example using the Sample data table Big Class.&amp;nbsp; The objective is to display all 12 year olds vs all non 12 year olds.&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="txnelson_0-1677042052681.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50324i1987E0653AADCC3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1677042052681.png" alt="txnelson_0-1677042052681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1677042358669.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50326i0AEB0256355FA132/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1677042358669.png" alt="txnelson_2-1677042358669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then open Graph Builder and create your graph.&amp;nbsp; Then drag the new column Age 2 to the X Group drop area&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1677042252602.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50325i21C18D5158B274D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1677042252602.png" alt="txnelson_1-1677042252602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 05:06:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/603561#M80669</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-22T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot subset of rows together with different subset of same rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/607571#M80918</link>
      <description>&lt;P&gt;As a dynamic extension to what Jim recommends, my favorite way to do this is as follows:&lt;/P&gt;
&lt;P&gt;1) add a new column to the table, name it "Selected", make it nominal, and add to it the formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selected ( Row State ( ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This column will have 1 for any selected row, and 0 for any unselected row, and will update automatically as you make various selections.&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="brady_brady_0-1677787678497.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50668i2461EF07EA22A97B/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1677787678497.png" alt="brady_brady_0-1677787678497.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) In graph builder, drag this new "Selected" column to the x-axis.&lt;/P&gt;
&lt;P&gt;If you have no rows selected in your table, you'll get something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_1-1677787810224.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50670iBA398C0A343BAC70/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_1-1677787810224.png" alt="brady_brady_1-1677787810224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) As soon as you select anything (even within this very graph), you'll get this:&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="brady_brady_2-1677787848079.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50672i581311C4CFCCF651/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_2-1677787848079.png" alt="brady_brady_2-1677787848079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly HOW you make the selection, is completely up to you. You can make the selection whatever you wish, and you'll always see what you've selected, vs everything else.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 20:13:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/607571#M80918</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-03-02T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot subset of rows together with different subset of same rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/607650#M80926</link>
      <description>&lt;P&gt;And if you want to compare one group with many others, you could put the selected() into GroupX to separate the selected group clearly from the other 5.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1677795686507.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50680iDF605FD1FB4C43A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1677795686507.png" alt="hogi_0-1677795686507.png" /&gt;&lt;/span&gt;&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;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "selected", Numeric, "Nominal", Formula( Selected() ) );
Graph Builder(
	Show Control Panel( 0 ),
	Variables(
		X( :age ),
		Y( :height ),
		Group X( :selected ),
		Overlay( :selected ),
		Color( :age )
	),
	Elements( Box Plot( X, Y, Legend( 14 ) ) ),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 22:22:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-plot-subset-of-rows-together-with-different-subset-of/m-p/607650#M80926</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-02T22:22:12Z</dc:date>
    </item>
  </channel>
</rss>

