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
- :
- Plotting a line for only one variable

Topic Options

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

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

Jan 26, 2012 4:10 PM
(862 views)

I have a data set in which I would like one column of data to be displayed as a line, and the other displayed as points only so I can determine where the points plot relative to my line. I know can shift one of the variables to a second y axis and get the plot I want, but if one y-axis is manipulated, the second does not move. Based off other posts it doesn't look like scripting in JMP 9 allows for detecting a change in the axis so it would be hard, or impossible to solve through a dynamic plot.

Is there any way to lock the two y-axis scales together? Is there some other trick that I could use to create a plot as described.

1 ACCEPTED SOLUTION

Accepted Solutions

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

Solution

I think graph builder can do what you're after. If you drag two variables together to the Y field you can via the contextual menues (right-click) add both a line and points and then set which variable that goes with each graph type.

A script example:

dt = Open**(** "$SAMPLE_DATA/Big Class.jmp" **)**;

Graph Builder**(**

Variables**(** X**(** :name **)**, Y**(** :height **)**, Y**(** :weight, Position**(** **1** **)** **)** **)**,

Elements**(**

Points**(** X, Y**(** **1** **))**,

Line**(** X, Y**(** **2** **)** **)**

**)**

**)**

4 REPLIES

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

I think graph builder can do what you're after. If you drag two variables together to the Y field you can via the contextual menues (right-click) add both a line and points and then set which variable that goes with each graph type.

A script example:

dt = Open**(** "$SAMPLE_DATA/Big Class.jmp" **)**;

Graph Builder**(**

Variables**(** X**(** :name **)**, Y**(** :height **)**, Y**(** :weight, Position**(** **1** **)** **)** **)**,

Elements**(**

Points**(** X, Y**(** **1** **))**,

Line**(** X, Y**(** **2** **)** **)**

**)**

**)**

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

Jan 27, 2012 7:05 AM
(811 views)

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

Jan 27, 2012 6:27 AM
(811 views)

It sounds like the data from the two columns is on the same exact scale. If this is true, you might find it easier to stack the two columns. Then you can easily plot all the data, color coding by the "Column 1" data and the "Column 2" data. And you can easily exclude but not hide the "Column 2" data when you fit a line.

Of course I am suggesting that this be done from the Fit Y by X platform.

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

Jan 27, 2012 7:12 AM
(811 views)