cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
NRE_DK
Level I

How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

Hi

I would like to have separate values (min and max) on the x-axis for F and M (BigClass example), so for example F goes from 60-140 while M goes from 70-160. Is this possible? or could there be some other way around it?

NRE_DK_0-1641288793136.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

Not sure if you do it with Page, but you could use some scripting for example with By parameter:

New window("",
	Lineup Box(N Col(2),
		Graph Builder(
			Variables(X(:height), Y(:weight)),
			Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2))),
			By(:sex)
		)
	)
);

jthi_0-1641311676386.png

Do note that these are two separate graph builders

 

-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

One option could be to use grouping column in Page instead of Group X:

jthi_0-1641290817377.png

 

-Jarmo
NRE_DK
Level I

Re: How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

Hi jthi

Thank you for your fast reply. Yes using "Page" could be a solution, but will it be possible to arrange the graphs horizontally instead of vertically?

jthi
Super User

Re: How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

Not sure if you do it with Page, but you could use some scripting for example with By parameter:

New window("",
	Lineup Box(N Col(2),
		Graph Builder(
			Variables(X(:height), Y(:weight)),
			Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2))),
			By(:sex)
		)
	)
);

jthi_0-1641311676386.png

Do note that these are two separate graph builders

 

-Jarmo
NRE_DK
Level I

Re: How do I get unlinked X-axes (separate min and max values) in GraphBuilder?

Thank you very much - this is highly appreciated. Even though they are two separate graphs, it sure does the job!