<?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: get values of 5 number summary from boxplot graph in graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/480622#M72507</link>
    <description>&lt;P&gt;I would not try to extract this information from Graph Builder. I would use another platform instead. The Distribution platform computes these quantiles for you. You can open it as an invisible platform, extract the values, and then close it. See this example:&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" );

dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ), Invisible );
rpt = dist &amp;lt;&amp;lt; Report;

five pt summary = { min, q1, med, q3, max } = rpt["Quantiles"][NumberColBox(1)] &amp;lt;&amp;lt; Get( { 11, 7, 6, 5, 1 });

dist &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Apr 2022 12:12:25 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2022-04-20T12:12:25Z</dc:date>
    <item>
      <title>get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/480530#M72499</link>
      <description>&lt;P&gt;Hey JMP-community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with a JSL script. I would like to work with multible values from the "5 number summary" of boxplot graphs in the graph builder. Do you know how to get these values - f.e. in a list or a matrix? to work with these after the graph is build?&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="sebbeyer_1-1650443280707.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41900iFB6D421455A0270C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sebbeyer_1-1650443280707.png" alt="sebbeyer_1-1650443280707.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;BR and thank you in advance&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:23:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/480530#M72499</guid>
      <dc:creator>sebbeyer</dc:creator>
      <dc:date>2023-06-11T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/480622#M72507</link>
      <description>&lt;P&gt;I would not try to extract this information from Graph Builder. I would use another platform instead. The Distribution platform computes these quantiles for you. You can open it as an invisible platform, extract the values, and then close it. See this example:&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" );

dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ), Invisible );
rpt = dist &amp;lt;&amp;lt; Report;

five pt summary = { min, q1, med, q3, max } = rpt["Quantiles"][NumberColBox(1)] &amp;lt;&amp;lt; Get( { 11, 7, 6, 5, 1 });

dist &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 12:12:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/480622#M72507</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-04-20T12:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/481800#M72617</link>
      <description>&lt;P&gt;Thanks alot for you reply, that did in fact help me. I have just one open question left: When I create the distribution all values from all Boxes are put together. Is there an option to create the distribution for different X values? I try to explain it in my example above your post. There are 5 Boxes for different x values (here EC1, EC2, LS20,...) Is it possible to create these distributions for each different X value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 07:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/481800#M72617</guid>
      <dc:creator>sebbeyer</dc:creator>
      <dc:date>2022-04-25T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/481821#M72620</link>
      <description>&lt;P&gt;Adding in a grouping or a 'by' variable makes the method of&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;a little more complex (but perfectly doable). As an alternative, though, you could build on this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Summarize( exg = By( :sex ), exm = Mean( :height ), exMax = Max(:height) );
Print(exg, exm, exMax);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:27:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/481821#M72620</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2022-04-25T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/482073#M72644</link>
      <description>&lt;P&gt;Thank you. I have tested the Group by function in the script, but it did not turn out as expected... I have adapted &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358" target="_blank" rel="noopener"&gt;@markbailey&lt;/A&gt; s script with: &lt;STRONG&gt;dist &amp;lt;&amp;lt; Group By (X (:sex));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any suggestions what might be the problem here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR and thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ), Invisible );
dist &amp;lt;&amp;lt; Group By (X( :Sex));
rpt = dist &amp;lt;&amp;lt; Report;

five pt summary = { min, q1, med, q3, max } = rpt["Quantiles"][NumberColBox(1)] &amp;lt;&amp;lt; Get( { 11, 7, 6, 5, 1 });

dist &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 07:02:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/482073#M72644</guid>
      <dc:creator>sebbeyer</dc:creator>
      <dc:date>2022-04-26T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: get values of 5 number summary from boxplot graph in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/482276#M72659</link>
      <description>&lt;P&gt;This example should give you the essential ideas and approach:&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 );

// example of data
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// launch platform and analyze separately by :sex and save reference to analysis layer
dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ), By( :sex ) );

// get reference to report layer
rpt = dist &amp;lt;&amp;lt; Report;

// get reference to all Qunatiles outline boxes
quantile table = rpt &amp;lt;&amp;lt; XPath( "//OutlineBox[text()='Quantiles']" );
n rpts = N Items( quantile table );

// prepare empty container for all five-point summaries
summary = J( 5, n rpts, . );

// iterate over all Quantile reports
For( r = 1, r &amp;lt;= n rpts, r++,
	summary[0,r] = Matrix( (quantile table[r])[1][NumberColBox(1)] &amp;lt;&amp;lt; Get( { 11, 7, 6, 5, 1 } ) );
);

// survace matrix as a new data table
As Table( summary );

dist &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:54:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-values-of-5-number-summary-from-boxplot-graph-in-graph/m-p/482276#M72659</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-04-26T14:54:23Z</dc:date>
    </item>
  </channel>
</rss>

