cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar

How do I modify color and type of marker of excluded data points in Fit Model platform (JMP 18)

Hi all!

In JMP 17, it was possible to exclude single data points in the Fit Model platform and to simultaneously display them, for example, as a blue cross.

In JMP 18 these data points are displayed as a grey "e".

Is there a way to change this "e" e. g. in a blue cross like at the Bivariate platform?

 

PolygonStallion_0-1720460854459.png

 

A solution via JSL is also highly welcome.

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How do I modify color and type of marker of excluded data points in Fit Model platform (JMP 18)

Seems like that e is overriding quite a few different options (row legend, row states,...). Using Marker Draw Column is one option, but for whatever reason that doesn't support row states so I think you would have to turn them into images first. This doesn't contain script to convert row states into images but shows how images could be used for the marker with an formula

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << Select Rows(40) << Exclude(1);
dt << Markers(2) << Colors("Blue") << clear select;

fm = dt << Fit Model(
	Y(:height),
	Effects(:weight),
	Personality("Standard Least Squares"),
	Emphasis("Minimal Report"),
	Run(
		:height << {Summary of Fit(1), Analysis of Variance(1), Parameter Estimates(1), Scaled Estimates(0), Plot Actual by Predicted(0),
		Plot Residual by Predicted(0), Plot Studentized Residuals(0), Plot Effect Leverage(0), Plot Residual by Normal Quantiles(0),
		Box Cox Y Transformation(0)}
	),
	SendToReport(
		Dispatch({"Regression Plot"}, {:weight}, ScaleBox, {Min(60), Max(177.067669172932), Inc(20), Minor Ticks(1)}),
		Dispatch({"Regression Plot"}, {:height}, ScaleBox, {Min(50), Max(73.2), Inc(5), Minor Ticks(1)})
	)
);

dt << New Column("M", Expression, Formula(
	If(Excluded(),
		Icon Box("Excluded") << get picture
	,
		Icon Box("MarkerColumn") << get picture
	)
));

frame = (fm << report)[FrameBox(1)];
seg = (frame << FindSeg(Marker Seg(1)));
seg << Set Marker Draw Column(:M);

jthi_0-1720507052574.png

If Marker Draw Column worked with Row States this would be very easy or if the platform just followed row states...

 

It might be easier to create the plot in Graph Builder and combine those two windows. If you hold shift and click on graph builders red triangle you can make it show excluded rows

jthi_1-1720507198802.png

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How do I modify color and type of marker of excluded data points in Fit Model platform (JMP 18)

Seems like that e is overriding quite a few different options (row legend, row states,...). Using Marker Draw Column is one option, but for whatever reason that doesn't support row states so I think you would have to turn them into images first. This doesn't contain script to convert row states into images but shows how images could be used for the marker with an formula

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << Select Rows(40) << Exclude(1);
dt << Markers(2) << Colors("Blue") << clear select;

fm = dt << Fit Model(
	Y(:height),
	Effects(:weight),
	Personality("Standard Least Squares"),
	Emphasis("Minimal Report"),
	Run(
		:height << {Summary of Fit(1), Analysis of Variance(1), Parameter Estimates(1), Scaled Estimates(0), Plot Actual by Predicted(0),
		Plot Residual by Predicted(0), Plot Studentized Residuals(0), Plot Effect Leverage(0), Plot Residual by Normal Quantiles(0),
		Box Cox Y Transformation(0)}
	),
	SendToReport(
		Dispatch({"Regression Plot"}, {:weight}, ScaleBox, {Min(60), Max(177.067669172932), Inc(20), Minor Ticks(1)}),
		Dispatch({"Regression Plot"}, {:height}, ScaleBox, {Min(50), Max(73.2), Inc(5), Minor Ticks(1)})
	)
);

dt << New Column("M", Expression, Formula(
	If(Excluded(),
		Icon Box("Excluded") << get picture
	,
		Icon Box("MarkerColumn") << get picture
	)
));

frame = (fm << report)[FrameBox(1)];
seg = (frame << FindSeg(Marker Seg(1)));
seg << Set Marker Draw Column(:M);

jthi_0-1720507052574.png

If Marker Draw Column worked with Row States this would be very easy or if the platform just followed row states...

 

It might be easier to create the plot in Graph Builder and combine those two windows. If you hold shift and click on graph builders red triangle you can make it show excluded rows

jthi_1-1720507198802.png

 

-Jarmo

Re: How do I modify color and type of marker of excluded data points in Fit Model platform (JMP 18)

Many thanks for your help! You're right that it's easier to use the Graph Builder.