cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Plot range for each group in variability chart

Hello,

 

I have made a script in jsl, that plots a variability chart for two groups. How do I draw a separate range for each group in the same chart - say the tolerance interval for each group?

 

Thanks!

4 REPLIES 4
Georg
Level VII

Re: Plot range for each group in variability chart

I think, you have the possibility to draw reference lines for the full chart, but not for each group.

So the workaround would be to put two variability charts in one window, and set the reference lines for each as you want.

Georg
txnelson
Super User

Re: Plot range for each group in variability chart

What am I missing?  JMP Variability chart already has the ability to display range values

txnelson_0-1659120910891.png

And you can use the Add Graphics Script capability to add any other item you may want on the graph.

Jim

Re: Plot range for each group in variability chart

Thanks Jim,

This is what I want. How could I approach this using Add Graphics?

 

jmp plot.png

 

txnelson
Super User

Re: Plot range for each group in variability chart

Here is a very simple example.  All of the Graphics functions are documented in the Scripting Index, under "Graphics

txnelson_0-1659536002660.png

txnelson_1-1659536089894.png

Names Default To Here( 1 );
dt = 
// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );
vc = Variability Chart(
	Y( :height ),
	X( :sex, :age ),
	Show Cell Means( 0 ),
	Std Dev Chart( 0 )
);
rvcf = Report( vc )[framebox( 1 )];

rvcf << add graphics script(
	Pen Color( red );
	Line( {0, 67}, {6, 67} );
	Line( {6, 62}, {12, 62} );
	Pen Color( blue );
	Line( {0, 55}, {6, 55} );
	Line( {6, 52}, {12, 52} );
	Text Color( red );
	Text( {1, 67}, "Limit for Females" );
);

 

Jim