This discussion has continued in Graph builder problem with lines, markers, and dots
... leading to this "workaround" via preferences/Graph Builder settings :
// execute the code if you know what you are doing - changing the preferences is dangerous
Set Platform Preferences(
Graph Builder(
Overlay Auto Line Styles Limit( 1, <<On ),
Overlay Auto Marker Styles Limit( 62, <<Off ));
);
//--------------------------------------------------
Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
Graph Builder(
Size( 843, 698 ),
Graph Spacing( 4 ),
Variables( X( :BP 8W ), Y( :BP 8M ), Overlay( :Subject ), Color( :Dose ) ),
Elements( Line( X, Y, Legend( 11 ) ), Points( X, Y, Legend( 12 ) ) )
);
The idea:
- Reduce the auto limit for line styles to 1 - to plot all lines as solid lines.
- However, keep the auto limit for markers - to get different markers for different overlay groups.
- use color to specify the color.
The result:
- individual traces for each subject
- all lines are solid
- different markers for the different subjects
- color indicates: dose

Users will probably find a way to create the plot they want using tricks and workarounds.
However, the need for workarounds highlights the limitations of Graph Builder.
Overlay is used for different purposes:
- to "group data" for smoother, line, bar and other plots
- to control the style of lines
- to control the style of markers
This is great if you need one of these options or multiple options 'synchronously'.
However, it is inconvenient when you need multiple options in a non-synchronous way.
For example, at the moment it is not possible to assign markers for categories which don't coincide with the Overlay groups.
Let's try to create a plot with the following settings
- individual traces for each subject
- different
markers colors for the different subjects
color marker indicates: dose

This plot looks simple enough, doesn't it? But it's extremely difficult to create in Graph Builder.
Give it a try and share your experience!
Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
Graph Builder(
Graph Spacing( 4 ),
Variables(
X( :BP 8W ),
Y( :BP 8M ),
Overlay( :Subject, Overlay Encoding( "Color" ) ),
Color( :Dose )
),
Elements( Line( X, Y), Points( X, Y ) )
);
idea/issue from: how to generate this graph in Graph Builder?
