<?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 Adding error bars in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4404#M4404</link>
    <description>&lt;P&gt;It is possible but I have not found a straightforward way to do it. First you need to calculate mean-SE and mean+SE. Then you'll get the best result if you first stack the columns. Try the script below. It illustrates some ways to do it in JMP 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier; color: #009800;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make an example table
dt = Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
dtsum = dt &amp;lt;&amp;lt; Summary( Group( :age ), Mean( :height ), Std Err( :height ) );
 
// Add columns with Mean ± SE
dtsum &amp;lt;&amp;lt; New Column( "lower",
          numeric,
          values(
                    (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) - (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; get as matrix)
          )
);
dtsum &amp;lt;&amp;lt; New Column( "upper",
          numeric,
          values(
                    (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) + (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; getasmatrix)
          )
);
// Stack columns
dtstacked = dtsum &amp;lt;&amp;lt; Stack(
          columns( :Name( "Mean(height)" ), :lower, :upper ),
          Source Label Column( "Label" ),
          Stacked Data Column( "Data" ),
          Name( "Non-stacked columns" )(Keep( :age ))
);
 
// Three ways to make a graph with mean and error bars based known SE
// 1. Overlay plot with range plot. Ugly graph and markers are visible for ± SE
dtsum &amp;lt;&amp;lt; Overlay Plot( X( :age ), Y( :Name( "Mean(height)" ), :lower, :upper ), Range Plot( 1 ) );
 
// 2. Graph builder. Nicer graph but table must be stacked first.
dtstacked &amp;lt;&amp;lt; Graph Builder(
          Show Control Panel( 0 ),
          Variables( X( :age ), Y( :Data ) ),
          Elements(
                    Points(
                              X,
                              Y,
                              Legend( 0 ),
                              Jitter( 0 ),
                              Summary Statistic( "Mean" ),
                              Error Bars( "Range" ),
                    )
          )
);

// 3. Chart platform. Similar to graph in 2.
dtstacked &amp;lt;&amp;lt; Chart(
          X( :age ),
          Y( Mean( :Data ) ),
          Add Error Bars to Mean( Range ),
          Overlay Axis &amp;lt;&amp;lt; {{Min( 52.5 ), Max( 72.5 ), Inc( 5 ), Minor Ticks( 1 )}},
          Y[1] &amp;lt;&amp;lt; Point Chart( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 18:10:48 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2018-06-13T18:10:48Z</dc:date>
    <item>
      <title>Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4403#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a simple problem which I have been unable to solve. I have a dataset which I would like to plot in a Fit Y by X style scatterplot against another dataset. For each datapoint I know the standard deviation and I would like to add these standard deviations as error bars to the plot, is there anyway to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like JMP only does this normally if it has calculated the standard deviation itself, I don't want this as I already know the standard deviation for each and every datapoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:04:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4403#M4403</guid>
      <dc:creator>laurence</dc:creator>
      <dc:date>2012-02-09T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4404#M4404</link>
      <description>&lt;P&gt;It is possible but I have not found a straightforward way to do it. First you need to calculate mean-SE and mean+SE. Then you'll get the best result if you first stack the columns. Try the script below. It illustrates some ways to do it in JMP 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier; color: #009800;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make an example table
dt = Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
dtsum = dt &amp;lt;&amp;lt; Summary( Group( :age ), Mean( :height ), Std Err( :height ) );
 
// Add columns with Mean ± SE
dtsum &amp;lt;&amp;lt; New Column( "lower",
          numeric,
          values(
                    (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) - (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; get as matrix)
          )
);
dtsum &amp;lt;&amp;lt; New Column( "upper",
          numeric,
          values(
                    (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) + (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; getasmatrix)
          )
);
// Stack columns
dtstacked = dtsum &amp;lt;&amp;lt; Stack(
          columns( :Name( "Mean(height)" ), :lower, :upper ),
          Source Label Column( "Label" ),
          Stacked Data Column( "Data" ),
          Name( "Non-stacked columns" )(Keep( :age ))
);
 
// Three ways to make a graph with mean and error bars based known SE
// 1. Overlay plot with range plot. Ugly graph and markers are visible for ± SE
dtsum &amp;lt;&amp;lt; Overlay Plot( X( :age ), Y( :Name( "Mean(height)" ), :lower, :upper ), Range Plot( 1 ) );
 
// 2. Graph builder. Nicer graph but table must be stacked first.
dtstacked &amp;lt;&amp;lt; Graph Builder(
          Show Control Panel( 0 ),
          Variables( X( :age ), Y( :Data ) ),
          Elements(
                    Points(
                              X,
                              Y,
                              Legend( 0 ),
                              Jitter( 0 ),
                              Summary Statistic( "Mean" ),
                              Error Bars( "Range" ),
                    )
          )
);

// 3. Chart platform. Similar to graph in 2.
dtstacked &amp;lt;&amp;lt; Chart(
          X( :age ),
          Y( Mean( :Data ) ),
          Add Error Bars to Mean( Range ),
          Overlay Axis &amp;lt;&amp;lt; {{Min( 52.5 ), Max( 72.5 ), Inc( 5 ), Minor Ticks( 1 )}},
          Y[1] &amp;lt;&amp;lt; Point Chart( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:10:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4404#M4404</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-06-13T18:10:48Z</dc:date>
    </item>
    <item>
      <title>Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4405#M4405</link>
      <description>&lt;P&gt;It's possible to use Graph Builder to show error bars without stacking the data.&amp;nbsp; I.e. you have 3 separate columns: center point, upper limit and lower limit.&amp;nbsp; Using the data above, you drag the X variable (age) to the X axis.&amp;nbsp; Then highlight upper and lower and drag them to the Y axis.&amp;nbsp; Right click in the center of the graph, click Points &amp;gt; Change to &amp;gt; Bar.&amp;nbsp; Then right click in the graph, click Bar &amp;gt; Bar Style &amp;gt; Interval.&amp;nbsp; Now drag the column Mean(height) just to the right of the Y axis.&amp;nbsp; Next add connecting lines and remove the connecting lines for upper and lower.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a JSL script that does it, along with some formatting:&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;// Make an example table
dt = Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
dtsum = dt &amp;lt;&amp;lt; Summary( Group( :age ), Mean( :height ), Std Err( :height ) );
 
// Add columns with Mean ± SE
dtsum &amp;lt;&amp;lt; New Column( "lower", numeric,
    values(
        (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) –
        (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; get as matrix)
    )
);
 
dtsum &amp;lt;&amp;lt; New Column( "upper",
    numeric,
    values(
        (:Name( "Mean(height)" ) &amp;lt;&amp;lt; get as matrix) +
        (:Name( "Std Err(height)" ) &amp;lt;&amp;lt; get as matrix)
    )
);
 
Graph Builder(
    Show Control Panel( 0 ),
    Variables(
        X( :age ),
        Y( :lower ),
        Y( :upper, Position( 1 ) ),
        Y( :Name( "Mean(height)" ), Position( 1 ) )
    ),
    Elements(
        Bar(
            X,
            Y( 1 ),
            Y( 2 ),
            Y( 3 ),
            Legend( 2 ),
            Bar Style( "Interval" ),
            Summary Statistic( "Mean" )
        ),
        Line( X, Y( 3 ), Legend( 4 ), Row order( 0 ), Summary Statistic( "Mean" ) )
    ),
    SendToReport(
        Dispatch(
            {},
            "400",
            ScaleBox,
            {Legend Model(
                2,
                Properties( 0, {Line Color( 0 )} ),
                Properties( 1, {Line Color( 0 ), Marker( "FilledCircle" )} )
            )}
        ),
        Dispatch( {}, "Graph Builder", FrameBox, {Marker Size( 3 )} )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:09:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4405#M4405</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-13T18:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4406#M4406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THis was very helpful for me, i am trying to write JSL script so that I can plot standard deviation error bars on a control chart as each datapoint on the control chart is the average of x individual points. Is there a way that the JSL script used for Graph Builder can be used in Run Chart, XBar, IR, UWMA, or PreSummarize Control Chart script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 16:00:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4406#M4406</guid>
      <dc:creator>bholmes91011</dc:creator>
      <dc:date>2012-06-12T16:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4407#M4407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is really useful but how do you remove the connecting lines for upper and lower (other than by scripting)?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:47:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4407#M4407</guid>
      <dc:creator />
      <dc:date>2012-10-30T15:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4408#M4408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right click on the graph and select &lt;STRONG&gt;Line &amp;gt; Y &amp;gt; upper&lt;/STRONG&gt; (or whatever you called your upper bound column).&amp;nbsp; Repeat for the lower bound.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 16:50:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4408#M4408</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2012-10-30T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4409#M4409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant. I did not realise that is was that simple.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 10:11:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4409#M4409</guid>
      <dc:creator />
      <dc:date>2012-10-31T10:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4410#M4410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer. Any of the three methods work nicely to include error bars in the y axis. Do you know how can I include both, x&amp;nbsp; and y error bars in the same scatter plot? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:40:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4410#M4410</guid>
      <dc:creator>paquinteroc</dc:creator>
      <dc:date>2016-10-04T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4411#M4411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an add-in from Ian Cox that might be what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/docs/DOC-6298" target="_blank"&gt;JMP Add-In that plots uncertainty in X and Y values&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:09:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/4411#M4411</guid>
      <dc:creator>Bill_Worley</dc:creator>
      <dc:date>2016-10-28T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/47653#M27154</link>
      <description>There is an easier option - even without the jitter-problem when you use an additional overlay variable. First create a column for lower and the upper value each (as descripted above). Then stack the data (central point, upper value, lower value). Open graph-builder and add the stacked data to the y-axis. Then choose summary statistic "mean" and Error bars "range". That's it. Even without the jitter problem! Good luck :)&lt;/img&gt;</description>
      <pubDate>Sat, 25 Nov 2017 15:53:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/47653#M27154</guid>
      <dc:creator>whitelampe</dc:creator>
      <dc:date>2017-11-25T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/845705#M102012</link>
      <description>&lt;P&gt;There is an 'Interval' feature that allows you to add the error bars (i.e., with a column containing the standard deviations for each row/sample):&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="jstanfill4911_0-1741044734850.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73536i17858F7C0EC43CC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jstanfill4911_0-1741044734850.png" alt="jstanfill4911_0-1741044734850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 23:34:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/845705#M102012</guid>
      <dc:creator>jstanfill4911</dc:creator>
      <dc:date>2025-03-03T23:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding error bars in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/845708#M102013</link>
      <description>&lt;P&gt;For example&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="jstanfill4911_1-1741045019635.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73537i96A95F8B5EAC1DA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jstanfill4911_1-1741045019635.png" alt="jstanfill4911_1-1741045019635.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="jstanfill4911_2-1741045101554.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73538i3AEC5E04F63DC9C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jstanfill4911_2-1741045101554.png" alt="jstanfill4911_2-1741045101554.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>Mon, 03 Mar 2025 23:38:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-error-bars-in-JMP/m-p/845708#M102013</guid>
      <dc:creator>jstanfill4911</dc:creator>
      <dc:date>2025-03-03T23:38:33Z</dc:date>
    </item>
  </channel>
</rss>

