<?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: Showing statics of highlighted points in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/394040#M64444</link>
    <description>&lt;P&gt;Nice hack!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that a formula containing Selected() will work as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also use this column in Overlay, so I see the mean in the caption for all the plotted trends.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 12:27:51 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2021-06-17T12:27:51Z</dc:date>
    <item>
      <title>Showing statics of highlighted points in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393648#M64403</link>
      <description>&lt;P&gt;I am plotting some sensor data stacking several Ys (sensor readings)&amp;nbsp; with one X (date time) in the graph builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to get the value of all the Ys for the rows I am selecting I need to move my mouse sensor by sensor using the crosshair.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to use caption boxes (or similar) in the graph building that summarize selected rows (data points) only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution should avoid the use of JSL coding if possible, as this functionality is meant for users learning JMP.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:15:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393648#M64403</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-11T11:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Showing statics of highlighted points in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393658#M64405</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;has a creative solution here using row states to create groups automatically as you select and then using a data filter attached to Tabulate (or other platforms). I can't quite remember how to make it work but perhaps by tagging him here he'll remind us all.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 14:19:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393658#M64405</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-06-16T14:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Showing statics of highlighted points in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393673#M64406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Jeff mentions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Add a new column to your table, name it "Selected", then right click on the column header, select Formula and enter this formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;selected ( row state ( ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This formula results in the cell value == 1 when the row is selected, and 0 if not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Right-click on the Selection column, select Column Properties, and change the modeling type to Nominal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Build your graph with Graph Builder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) Use Tabulate to make a table with the statistics you want, using the Selected column as a grouping column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5) In the Tabulate report, invoke a Local Data Filter, using the Selection column. Choose the 0 (zero) level, and click the "Inverse" checkbox. The reason for this is that the "1" level will not initially show up if there are no rows selected, so we use the "0" level and invert.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, the summary will reflect whichever rows are selected (no matter where you select them).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've pasted a script below so you can see the result easily. The script creates a random table in which half of the rows are selected, a Graph Builder graph, and a Tabulate report with a Local Data Filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&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 = astable(J(20,2, randomuniform()));
dt &amp;lt;&amp;lt; new column("Selected", nominal, formula(selected(row state())));
dt &amp;lt;&amp;lt; select randomly (0.5);

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 526, 454 ),
	Show Control Panel( 0 ),
	Variables( X( :Col2 ), Y( :Col1 ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) )
);

dt &amp;lt;&amp;lt; Tabulate(
	Show Control Panel( 0 ),
	Add Table(
		Row Table(
			Analysis Columns( :Col1 ),
			Grouping Columns( :Selected ),
			Statistics( Sum, Mean )
		)
	),
	Local Data Filter(
		Show Histograms and Bars( 0 ),
		Inverse( 1 ),
		Add Filter( columns( :Selected ), Where( :Selected == 0 ) )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_0-1623856257017.png" style="width: 460px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33580i67A10539621939CC/image-dimensions/460x571?v=v2" width="460" height="571" role="button" title="brady_brady_0-1623856257017.png" alt="brady_brady_0-1623856257017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:12:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/393673#M64406</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-06-16T15:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Showing statics of highlighted points in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/394040#M64444</link>
      <description>&lt;P&gt;Nice hack!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that a formula containing Selected() will work as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also use this column in Overlay, so I see the mean in the caption for all the plotted trends.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:27:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Showing-statics-of-highlighted-points-in-Graph-Builder/m-p/394040#M64444</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2021-06-17T12:27:51Z</dc:date>
    </item>
  </channel>
</rss>

