cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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!