cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
tom_abramov
Level V

Variability chart for columns as list in JSL

Hi,

What is the way to run Variability chart with X axises from list of strings.

Thanks.

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
columns_list = {"sex","age"};
Variability Chart( Y( :height ), X( columns_list ) );

 

 
 
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Variability chart for columns as list in JSL

NamesDefaultToHere(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
columns_list = {"sex", "age"};
dt << Variability Chart( Y( :height ), X( Eval(columns_list )) );

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: Variability chart for columns as list in JSL

NamesDefaultToHere(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
columns_list = {"sex", "age"};
dt << Variability Chart( Y( :height ), X( Eval(columns_list )) );
ron_horne
Super User (Alumni)

Re: Variability chart for columns as list in JSL

Hi @tom_abramov ,

 

please have a look at this script and let us know if it works for you:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
columns_list = {"sex", "age"};
// in separate windows - 
For( i = 1, i <= N Items( columns_list ), i++,
	Variability Chart( Y( :height ), X( columns_list( i ) ) )
);

// in same window 
New Window( "Variability Chart",
	Lineup Box(
		N Col( N Items( columns_list ) ),
		For( i = 1, i <= N Items( columns_list ), i++,
			Variability Chart( Y( :height ), X( columns_list( i ) ) ), 
	
		)
	)
);

 

 

ron