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
- :
- Discussions
- :
- Re: How do I make a graph with secondary x-axis?

Topic Options

- Start Article
- 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

How do I make a graph with secondary x-axis?

May 1, 2019 8:11 AM
(648 views)

I want to make a plot of two data series with overlayed x-axes. How is this possible in JMP? It is easily done in MS Excel - see below and attached.

3 REPLIES 3

Highlighted
##

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

Re: How do I make a graph with secondary x-axis?

@Morten ,

You can *easily *do that in JMP. If you wanted to do that using a script, here is an example:

```
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb1 = dt << Graph Builder(Variables( X( :sex ), X( :age, Position( 1 ) ), Y( :height ) ),
Elements( Points( X( 1 ), X( 2 ), Y, Legend( 24 ) ) )
);
```

If you wanted to use the interactive platform, just drop a variable on the x-axis . Then bring the second variable and hover it on the x-axis, JMP will tell you what will happen depending on where you drop it .

Best

Uday

Uday

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

Re: How do I make a graph with secondary x-axis?

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

Re: How do I make a graph with secondary x-axis?

I believe your assessment is correct. I do not think there currently is a way to generate a second X Axis. It is a great idea, so I encourage you to add it to the JMP Wish List.

Jim