Users will probably find a way to create the plot they want using tricks and workarounds.
However, the need for workarounds highlights the current limitations of Graph Builder.
Overlay is used for different/distinct purposes:
- 1) to "group data" for smoother, line, bar and other plots
- 2a) to control the style of lines
- 2b) to control the style of markers
- 2c) ...
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 [just a slight difference to the plot in the previous post]:
- individual traces for each subject
- different
markers colors for the different subjects
color marker indicates: dose

The graph looks simple enough, doesn't it? But it's extremely difficult to create it in Graph Builder.
Give it a try and share your experience!
Start with this script — all you need to do is adjust the markers.
Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
Graph Builder(
Graph Spacing( 4 ),
Variables(
X( :BP 8W ),
Y( :BP 8M ),
Wrap( :Subject ),
Overlay( :Subject, Overlay Encoding( "Color" ) ),
Color( :Dose )
),
Elements(
Line( X, Y, Color( 0 ) ),
Points( X, Y, Overlay( 0 ) )
)
);
idea/issue from: how to generate this graph in Graph Builder?
