cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
ndowidar
Level III

How do I use Graph builderto overlay Points & Boxplots

Hi, 

 I've never been able to get the points to overlay the boxplts correctly in JMP. Does anyone know a way to get the points to align within each boxplot? 

 

Thanks, 

 Naeem

ndowidar_0-1710526535325.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How do I use Graph builderto overlay Points & Boxplots

You could try adding extra column to x-axis and use that same column for color

jthi_0-1710528641424.png

Names Default To Here(1); 

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

gb = Graph Builder(
	Variables(X(:age), X(:sex, Position(1)), Y(:height), Color(:sex)),
	Elements(
		Box Plot(X(1), X(2), Y, Legend(3)),
		Points(X(1), X(2), Y, Legend(4))
	)
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How do I use Graph builderto overlay Points & Boxplots

You could try adding extra column to x-axis and use that same column for color

jthi_0-1710528641424.png

Names Default To Here(1); 

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

gb = Graph Builder(
	Variables(X(:age), X(:sex, Position(1)), Y(:height), Color(:sex)),
	Elements(
		Box Plot(X(1), X(2), Y, Legend(3)),
		Points(X(1), X(2), Y, Legend(4))
	)
);
-Jarmo
deborah621
Level I

Re: How do I use Graph builderto overlay Points & Boxplots

Choose the jittering options that suit your data. The default is usually Centered Grid, but you might want to select Random Uniform to prevent the points from aligning in rows.