<?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: Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272955#M53093</link>
    <description>&lt;P&gt;All of your questions, except for the whiskers question are answered in the Scripting Index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;If you scroll down the list of objects and functions on the left hand side, you will find a selection called Graphics.&amp;nbsp; If you click on it, it will expose all of the graphical functions that can be used.&lt;/P&gt;
&lt;P&gt;Concerning the Whiskers, they can only be changed in color and line thickness, and the color and thickness will be for the entire box plot.&lt;/P&gt;
&lt;P&gt;If you chose to do so, you can just use a Graph Box() and draw your own box plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 12:01:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-06-16T12:01:53Z</dc:date>
    <item>
      <title>Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272636#M53026</link>
      <description>&lt;P&gt;In my work we display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles + the mean in our box plots in excel (which is painful and time consuming) – is there a way of replicating this in JMP oneway or graph builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;andrew.botfield@geochemistry.com.au&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:02:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272636#M53026</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2023-06-11T11:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272643#M53027</link>
      <description>&lt;P&gt;There is not a selectable way to do this, but by adding a simple script to the output, it can be done.&amp;nbsp; Below is a script that adds in the .05,.10,mean,.90 &amp;amp; .95 lines.&amp;nbsp; The .25, .5 and .75 are automatically generated with the Box Plot&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boxplot.PNG" style="width: 626px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24573i553BC43BD9CE43AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="boxplot.PNG" alt="boxplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// Get the statistics
Summarize(
	dt,
	byGroup = By( :sex ),
	p05 = Quantile( :height, .05 ),
	p10 = Quantile( :height, .10 ),
	p90 = Quantile( :height, .90 ),
	p95 = Quantile( :height, .95 ),
	mean = Mean( :height )
);

gb = Graph Builder(
	Size( 528, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Box Plot( X, Y, Legend( 6 ) ) )
);

statList = {"p05", "p10", "mean", "p90",
"p95"};


Report( gb )[FrameBox( 1 )] &amp;lt;&amp;lt;
Add Graphics Script(
	Pen Color( Black );
	For( s = 1, s &amp;lt;= N Items( statList ), s++,
		myMat = Eval( Parse( statList[s] ) );
		For( i = 1, i &amp;lt;= 2, i++,
			matx = [0, 0];
			matx[1] = Matrix( i - 1 - .18 );
			matx[2] = i - 1 + .18;
			maty = [0, 0];
			matY[1] = Matrix( myMat[i] );
			matY[2] = Matrix( myMat[i] );
			Line( matx, maty );
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2020 02:20:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272643#M53027</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-15T02:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272651#M53028</link>
      <description>Hi Jim - thank you so much for getting back so quickly - will give this a go and let you know - cheers!</description>
      <pubDate>Mon, 15 Jun 2020 06:00:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272651#M53028</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2020-06-15T06:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272908#M53077</link>
      <description>Hi Jim, that is fantastic (have been playing with the script and works well. Would you be able to give me some further script clues on the following (thanks in advance):&lt;BR /&gt;&lt;BR /&gt;1. How to specify different colours for different groups of stats added? (e.g. mean versus the quantile values)&lt;BR /&gt;2. How to change thickness of displayed lines?&lt;BR /&gt;3. Is there an easy way to display the newly added stats on the graph? (i.e. as captions, etc)&lt;BR /&gt;4. Is there an easy way to remove the outlier whiskers and replace with new stat whiskers?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jun 2020 06:02:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272908#M53077</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2020-06-16T06:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to display 95th, 90th 75th, 50th, 25th, 10th and 5th percentiles in box plots in graph builder or one way plots</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272955#M53093</link>
      <description>&lt;P&gt;All of your questions, except for the whiskers question are answered in the Scripting Index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;If you scroll down the list of objects and functions on the left hand side, you will find a selection called Graphics.&amp;nbsp; If you click on it, it will expose all of the graphical functions that can be used.&lt;/P&gt;
&lt;P&gt;Concerning the Whiskers, they can only be changed in color and line thickness, and the color and thickness will be for the entire box plot.&lt;/P&gt;
&lt;P&gt;If you chose to do so, you can just use a Graph Box() and draw your own box plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 12:01:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/272955#M53093</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-16T12:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: The script only displays whiskers on one of the X variables - but the same script example displays for both sexes</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278702#M54114</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the text below I only get whiskers on one of the X variables - what modifications would you make to the script below to make it display on all of X variables - also see attached - thanks in advance for your help!&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( "Insitu Compiled.jmp" );

// Get the statistics
Summarize(
    dt,
    byGroup = By( :Oxidation ),
    p05 = Quantile( :Total %S for data, .05 ),
    p10 = Quantile( :Total %S for data, .10 ),
    p90 = Quantile( :Total %S for data, .90 ),
    p95 = Quantile( :Total %S for data, .95 ),
    Mean = Mean( :Total %S for data, ),
    Min = Min( :Total %S for data, ),
    Max = Max( :Total %S for data, )
);

gb = Graph Builder(
    Size( 528, 450 ),
    Show Control Panel( 0 ),
    Variables( X( :Oxidation ), Y( :Total %S for data ) ),
    Elements( Box Plot( X, Y, Legend( 6 ) ) )
);

statList = {"p05", "p10", "p90", "p95", "Mean", "Min", "Max"};

Report( gb )[FrameBox( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
    Pen Color( orange );
    Pen Size( 1 );
    Line Style( "Solid" );
    For( s = 1, s &amp;lt;= N Items( statList ), s++,
        myMat = Eval( Parse( statList[s] ) );
        For( i = 1, i &amp;lt;= 2, i++,
            matx = [0, 0];
            matx[1] = Matrix( i - 1 - .18 );
            matx[2] = i - 1 + .18;
            maty = [0, 0];
            matY[1] = Matrix( myMat[i] );
            matY[2] = Matrix( myMat[i] );
            Line( matx, maty );
        );
    );
);&lt;/CODE&gt;&lt;/PRE&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="Andrew_Botfield_0-1594779670323.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25363i3F5BE2EC0C4A1B16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andrew_Botfield_0-1594779670323.png" alt="Andrew_Botfield_0-1594779670323.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 10:31:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278702#M54114</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2020-07-15T10:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: The script only displays whiskers on one of the X variables - but the same script example displays for both sexes</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278786#M54115</link>
      <description>&lt;P&gt;I figured it out – needed to delete rows at the bottom of the table and make the number 3 instead of 2 (which I assume is the number of X axis displays) – whoo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For( i = 1, i &amp;lt;= &lt;STRONG&gt;3&lt;/STRONG&gt;, i++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matx = [0, 0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matx[1] = Matrix( i - 1 - .18 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matx[2] = i - 1 + .18;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maty = [0, 0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matY[1] = Matrix( myMat[i] );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matY[2] = Matrix( myMat[i] );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line( matx, maty );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 02:53:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278786#M54115</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2020-07-15T02:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: The script only displays whiskers on one of the X variables - but the same script example displays for both sexes</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278822#M54116</link>
      <description>&lt;P&gt;Change it to ......N Items(byGroup).....it will then become a generic setting&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items( byGroup ), i++, 
	matx = [0, 0];
	matx[1] = Matrix( i - 1 - .18 );
	matx[2] = i - 1 + .18;
	maty = [0, 0];
	matY[1] = Matrix( myMat[i] );
	matY[2] = Matrix( myMat[i] );
	Line( matx, maty );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 03:01:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/278822#M54116</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-15T03:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: The script only displays whiskers on one of the X variables - but the same script example displays for both sexes</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/279344#M54148</link>
      <description>&lt;P&gt;excellent - thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 23:28:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-display-95th-90th-75th-50th-25th-10th-and-5th/m-p/279344#M54148</guid>
      <dc:creator>Andrew_Botfield</dc:creator>
      <dc:date>2020-07-15T23:28:07Z</dc:date>
    </item>
  </channel>
</rss>

