In Oneway plot, I color the markers with the color theme "SAS Statistical" in Row Legend, but the lines connecting the markers in the Normal Quantile Plot still use "JMP Default" colors:
I can manually change the line colors to "SAS Statistical", by going to the "Legend Settings" and change the Color Theme to to "SAS Statistical". However, this method actually hard-code the colors in the JSL as highlighted below, and I cannot use it as a generic solution. For example, in a different dataset with four groups (1C, 2E, 3E and 4E), the line color of 4E is not defined. Is there a generic way using JSL, to keep the line colors consistent with the row colors I set in Row Legend, regardless of how many groups I have? Thanks.
Oneway(
Y( :Data ),
X( :Group ),
Plot Actual by Quantile( 1 ),
Line of Fit( 0 ),
Box Plots( 1 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
SendToReport(
Dispatch(
{},
"222",
ScaleBox,
{Legend Model(
1,
Properties(
0,
{Line Color( -7306931 ), Fill Color( -7306931 )},
Item ID( "1C", 1 )
),
Properties(
1,
{Line Color( -13654875 ), Fill Color( -13654875 )},
Item ID( "2E", 1 )
),
Properties(
2,
{Line Color( -6727072 ), Fill Color( -6727072 )},
Item ID( "3E", 1 )
)
)}
),
Dispatch(
{},
"Oneway Plot",
FrameBox,
{DispatchSeg( Box Plot Seg( 1 ), Line Color( "Red" ) ),
DispatchSeg( Box Plot Seg( 2 ), Line Color( "Red" ) ),
DispatchSeg( Box Plot Seg( 3 ), Line Color( "Red" ) ),
Row Legend(
Group,
Color( 1 ),
Color Theme( "SAS Statistical" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);