cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
dingodin
Level II

Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

Hi,

How do I create plots with error bars based on "Fit y by x", Graph builder, other?

The question may  refer to two ways to achieve the plots:

1. The error bars can be derived from explicitly from the data by creating columns of means, upper/lower errors, from which the plots are created, for e.g. time dependent data.

2. From the raw data by grouping several variables (columns) from which the means and STD/SDE are calculated (per row) and subsequently are used to create the Y by X plot ()means with the error bars (STD/SDE).

 

I have seen some examples using the Graph Builder using Bar format as intermediate stage, however, it seem not to work for me.

 

Thanks,

 

 - Dean

 

11 REPLIES 11
jthi
Super User

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

What do you mean by "it seem not to work for me" so what have you already tried? Bar chart for example has many different options you can use

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/bar.shtml#

jthi_0-1719829266876.pngjthi_0-1719829266876.png

There is also the Interval zone

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/graph-zones.shtml#

jthi_1-1719829378227.pngjthi_1-1719829378227.png

 

-Jarmo
dingodin
Level II

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

Hi jthi and thanks.

I was referring for instance to the following sources:

https://community.jmp.com/t5/JMPer-Cable/How-to-create-custom-error-bars-in-Graph-Builder/ba-p/35611

https://community.jmp.com/t5/Discussions/X-and-Y-error-bars-in-X-Y-Plot/td-p/36135

 

for implementations that haven't worked for me (or I am missing some intermediate steps in he process).

 

Thanks again,

 

 - Dean

 

jthi
Super User

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

I have added three column to JMP's sample data Big Class (0.25, 0.75 quantile and mean)

jthi_0-1719928727755.pngjthi_0-1719928727755.png

jthi_1-1719928737846.pngjthi_1-1719928737846.png

By using Interval bar chart I can get plot like this (I left the points there for visualization purposes)

jthi_2-1719928830854.pngjthi_2-1719928830854.png

 

-Jarmo

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

The error bar or interval estimate is usually an option in a red triangle (context) menu. Click the red triangle to the left of the fit under the scatter plot in Bivariate (Fit Y by X). You can select dotted lines or regions for the confidence or prediction interval.

See the Essential Graphing guide for similar instructions when using Graph Builder.

dingodin
Level II

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

Thanks Mark.

following your reply were in the drop down menu from the red triangle:

dingodin_0-1720013022068.pngdingodin_0-1720013022068.png

 

can I insert/add error bars? 

How/where do I implement what you mentioned "You can select dotted lines or regions for the confidence or prediction interval" for the above bivariant figure?

 

Thanks,

 

 - Dean

 

 

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

It is the red triangle under the plot for the desired fit:

Screenshot 2024-07-03 at 5.46.01 PM.pngScreenshot 2024-07-03 at 5.46.01 PM.png

dingodin
Level II

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

Thanks Mark,

To make it clear what I aim at looks like the following (created in Excel):

dingodin_0-1720075759471.pngdingodin_0-1720075759471.png

For sync, each exponentially decreasing line represents the mean for each of four groups (Legend) as a function of time (x-axis), and their corresponding Stds/ as the vertical lines. Simple... easily implemented via python's matplotlib package or alike, MATLAB, excel...

 

How to create such a figure from Fit Y by X, Graph Builder?

 

Thanks,

 

 - Dean

 

jthi
Super User

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

If you can share your dataset it makes it easier to demonstrate.

 

Here is one example using JMP's Big Class data table

jthi_0-1720080805362.pngjthi_0-1720080805362.png

https://www.jmp.com/support/help/en/18.0/#page/jmp/element-types-and-options.shtml

https://www.jmp.com/support/help/en/18.0/#page/jmp/points.shtml#

https://www.jmp.com/support/help/en/18.0/#page/jmp/line.shtml#

-Jarmo
dingodin
Level II

Re: Creating plots with error bars with "Fit Yby X", "Graph Builder" or other options

Hi  jhti,

 

I have attached a dataset.

 

thanks,

 

 - Dean

Recommended Articles