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

Turn off box plot in variability chart using JSL

Hi All, 

 

Does anyone know why the following script failed to turn off the box plot and cell mean? I copy this script after I manually created the variability plot. However, if I run the script, the box plot and cell mean are not turn off. I am currently using JMP17.

 

The only workaround I found is by using either of the two options below :

1. << (Variability Analysis[1] << Show Box Plots( 0 ))

2. << Variability Analysis << Show Box Plots( 0 )

 

In option 1, what does the [1]  in Variability Analysis mean? It seems like I can omit without any issue. I found the solution from JMP -> Scripting Index. 

 

 

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

Variability Chart(
	Y( :height ),
	Model( "Main Effect" ),
	X( :sex ),
	Sigma Multiplier( 6 ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Variability Analysis(
		:height,
		Show Range Bars( 0 ),
		Show Cell Means( 0 ),
		Std Dev Chart( 0 ),
		Points Jittered( 1 ),
		Show Box Plots( 0 )
	)
);
4 REPLIES 4
jthi
Super User

Re: Turn off box plot in variability chart using JSL

Which operating system are you using? Which JMP17 are you running? I tested with JMP17.2 on windows 10 and for me there were no box plots and if I change show box plots to 1 it will plot them.

Names Default To Here(1);

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

var = dt << Variability Chart(
	Y(:height),
	Model("Main Effect"),
	X(:sex),
	Sigma Multiplier(6),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Variability Analysis(
		:height,
		Show Range Bars(0),
		Show Cell Means(0),
		Std Dev Chart(0),
		Points Jittered(1),
		Show Box Plots(0)
	)
);

jthi_1-1727006336357.png

Is anything printed to log?

 

How do your preferences look?

jthi_0-1727006295255.png

Variability Analysis[1][1] refers to first variability analysis (it is different from Variability Chart and there can be more than one).

-Jarmo
hogi
Level XII

Re: Turn off box plot in variability chart using JSL

17.2?

When Box plots are enabled via the preferences, I can disable them via (JMP 17 & 18):

Show Box Plots( 0 )

hogi_0-1727006762427.png


As an alternative, you can try Ignore Platform Preferences(1).
I just learned it from @jthi:

Scripters Club Recording: JSL in Graph Builder 

Re: Turn off box plot in variability chart using JSL

Mine is 17.0, and I have the "show box plot" box checked in the preference. 

hogi
Level XII

Re: Turn off box plot in variability chart using JSL

any chance to update to JMP 17.2 - or 18.1?

... just to check out if it's the JMP version?

 

besides that:
with 18.1 there is no issue anymore with Find - or not find? : )