Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Add linear fit , eqn, R^2 to overlay plots

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Jun 21, 2018 10:25 AM
| Last Modified: Jun 21, 2018 10:43 AM
(7019 views)

Hi,

I cannot add linear fit and display equation & R^2 values when using overlay plot feature in jmp by label : 0 and 1. See the attached excel for data and desired plot.

Can you please help ?

Thanks a lot.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Jun 21, 2018 10:47 AM
| Last Modified: Jun 21, 2018 10:49 AM
(7302 views)
| Posted in reply to message from ad 06-21-2018

Your Excel sheet does not have the data, but here is an approach that should work.

Go to Graph Builder.

Drag your X variable to the X zone.

Drag your Y variable to the Y zone.

Drag your Label variable to the Overlay zone.

This should give you a scatterplot with different colors for each value of the Label variable.

Now click on the Graph element for the regression line.

You can then modify what is displayed by looking at the regression line options to the left of the graph.

Here is an example using the Big Class data.

Dan Obermiller

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Jun 21, 2018 1:17 PM
| Last Modified: Jun 22, 2018 10:10 AM
(7270 views)
| Posted in reply to message from ad 06-21-2018

Graph Builder is designed for graphs, not analysis. Fortunately, everything you want to do can be done through Fit Y by X which is an analysis platform.

Choose Fit Y by X. Specify your X and Y variables.

When the scatterplot appears, go to the red triangle and choose Group By... and specify your labels variable.

Go to Fit Special and choose your transformed fit. It will be done for each value of the labels variable.

Right-click the Y-axis and select Axis Settings. In the dialog, in the upper left is the scale control for you to change to a log axis.

Dan Obermiller

4 REPLIES 4

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Jun 21, 2018 10:47 AM
| Last Modified: Jun 21, 2018 10:49 AM
(7303 views)
| Posted in reply to message from ad 06-21-2018

Your Excel sheet does not have the data, but here is an approach that should work.

Go to Graph Builder.

Drag your X variable to the X zone.

Drag your Y variable to the Y zone.

Drag your Label variable to the Overlay zone.

This should give you a scatterplot with different colors for each value of the Label variable.

Now click on the Graph element for the regression line.

You can then modify what is displayed by looking at the regression line options to the left of the graph.

Here is an example using the Big Class data.

Dan Obermiller

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Add linear fit , eqn, R^2 to overlay plots

Hi Dan,

Thanks a lot for your quick solution. I appreciate it.

One more thing: If I want to change Y axis to log scale & want to do Fit Special : Transformed Fit log, can I acheive this in Graph Builder mode ?

THanks,

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Jun 21, 2018 1:17 PM
| Last Modified: Jun 22, 2018 10:10 AM
(7271 views)
| Posted in reply to message from ad 06-21-2018

Graph Builder is designed for graphs, not analysis. Fortunately, everything you want to do can be done through Fit Y by X which is an analysis platform.

Choose Fit Y by X. Specify your X and Y variables.

When the scatterplot appears, go to the red triangle and choose Group By... and specify your labels variable.

Go to Fit Special and choose your transformed fit. It will be done for each value of the labels variable.

Right-click the Y-axis and select Axis Settings. In the dialog, in the upper left is the scale control for you to change to a log axis.

Dan Obermiller

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Add linear fit , eqn, R^2 to overlay plots

Hi Dan,

Thanks a lot! Really appreciate your help.

Article Labels

There are no labels assigned to this post.