cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
Shahar_JMP
Level I

Changing colors in compare means analysis

Hi,

 
Comparing multiple groups and hitting the "compare all means."
I always find it challenging to understand which circle belongs to which group.
I tried color-coding the groups, but I still can’t get the circles to change their colors. 
I know JMP is programmed to indicate statistically significant groups by marking red vs. gray, but that is not helpful to my purposes. 
I copied the picture and overlayed it with colorful circles in PPTX. 
Is there a way to do it directly within JMP?
 
While on the topic, is there a way to change the default presentation of “grand mean” + “diamond” in the ANOVA, and select a default of box plots?
 
Thanks,
Shahar
 
 

 

2 REPLIES 2
Byron_JMP
Staff

Re: Changing colors in compare means analysis

I feel your pain on this one. 

In the Rows menu you can use Color or Mark by Column and make an external legend, as well as save the colors to the column property. 

Byron_JMP_0-1727272405915.png

HOWEVER!!, even though the color is set for the column, the rings (as well as pretty much every graphical element in the Fit Y by X platform) ignores this, so coloring of boxes, rings, diamonds etc, all has to be done manually, one at a time, for every single graph you make. 

At the top of the screen, there is a "Wishlist" link. This might be a good thing to add there, if you have a few moments. (Staff can't add items to this wishlist) 

JMP Systems Engineer, Health and Life Sciences (Pharma)
jthi
Super User

Re: Changing colors in compare means analysis

You might have to rely on scripting. This example is not very robust, but it gives an idea

Names Default To Here(1); 

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

ow = dt << Oneway(Y(:height), X(:sex), Each Pair(1));

fb = Report(ow)[FrameBox(2)];

segs = fb << Find Segs();
segs << Class Name;

seg = fb << Find Seg(CustomStreamSeg(1));

Eval(EvalExpr(
	fb << Add Graphics Script(
		circles = Expr(seg << get script);
		colors = {"Red", "Blue"};
		For(i = 1, i <= N Items(circles), i++,
			Pen Color(colors[i]);
			Pen Size(2);
			Eval(circles[i]);
		);
	);	
));

Write();

jthi_0-1727283826975.png

 

 

-Jarmo