cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
robot
Level VI

Graph Builder Overlay Color

Hi,

In Graph Builder, how can I use the Overlay and Color options to change the color and marker for each data group? Changing the marker is useful to help distinguish data when there are many colors, which may be very similar to each other.

 

For example, in the script below, it is useful use Overlay to separate data by age, and use Color to change the color and marker for each point, but if I use them together Overlay will change the line type and color to black, which adds confusion to the graph but no new information.

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Graph Builder(
       Show Control Panel( 0 ),
       Variables( X( :height ), Y( :weight ), Overlay( :age ), Color( :age ) ),
       Elements( Points( X, Y, Legend( 21 ) ), Smoother( X, Y, Legend( 22 ) ) )
);

 

 

 

Untitled-2.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
pumpkin79
Level I

Re: Graph Builder Overlay Color

You can do this by unclicking Color box under Smoother/Variables. 

Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :age ), Color( :age ) ),
	Elements(
		Points( X, Y, Legend( 21 ) ),
		Smoother( X, Y, Color( 0 ), Legend( 22 ) )
	)
)Graph Builder.gif

 

View solution in original post

2 REPLIES 2
pumpkin79
Level I

Re: Graph Builder Overlay Color

You can do this by unclicking Color box under Smoother/Variables. 

Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :age ), Color( :age ) ),
	Elements(
		Points( X, Y, Legend( 21 ) ),
		Smoother( X, Y, Color( 0 ), Legend( 22 ) )
	)
)Graph Builder.gif

 

robot
Level VI

Re: Graph Builder Overlay Color

Thanks!

Recommended Articles