Subscribe Bookmark RSS Feed

Graph Builder Overlay Color

robot

Community Trekker

Joined:

Feb 27, 2012

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

Community Member

Joined:

Dec 6, 2016

Solution

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

 

2 REPLIES
pumpkin79

Community Member

Joined:

Dec 6, 2016

Solution

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

Community Trekker

Joined:

Feb 27, 2012

Thanks!