cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
Select a Means Compare Circle in the Oneway Platform Report

Problem

You want to select one of the comparison circles produced by the Compare Means options in the Oneway platform. This is the JSL equivalent of clicking on one of the comparison circles to select it, and it results in all of the circles in the report getting colored according to the results of the means comparison.

Solution

You can send the Select Group() message to the Oneway object and specify the group corresponding to the circle you want to select.

 

dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
ow = dt << Oneway(
	Y( :height ), 
	X( :age ), 
	All Pairs( 1 ), 
	Comparison Circles( 1 ), 
	SendToReport( Dispatch( {}, "Means Comparisons", OutlineBox, {Close( 1 )} ) )
);

ow << Select Group( 12 );

Discussion

If you make a selection and then request further options from the Compare Means submenu, you have to send the Select Group() message again to have the selection appear in all of the comparison circles plots.

See Also

Discussion post

Documentation of Comparison Circles

 

JSL Cookbook

If you’re looking for a code snippet or design pattern that performs a common task for your JSL project, the JSL Cookbook is for you.

This knowledge base contains building blocks of JSL code that you can use to reduce the amount of coding you have to do yourself.

It's also a great place to learn from the experts how to use JSL in new ways, with best practices.