Overlay can be 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 functions or multiple options 'synchronously'.
However, it is inconvenient when you need some of the functions in a non-synchronous way.
An example:
How 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 settings in the previous post]:
- individual traces for each subject
- different
markers colors for the different subjects (wrap is added to check: 1 subplot = 1 subject = 1 color?)
color marker indicates: dose

The graph looks simple enough, doesn't it? But it's extremely difficult to create in Graph Builder.
Give it a try and share your experience!
Start with this script — all you need to do is adjust the markers (... and keep the colors as they are)
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" ) ),
),
Elements(
Line( X, Y),
Points( X, Y )
)
);
from: how to generate this graph in Graph Builder?