Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
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
Highlighted
ian_jmp
Staff

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
Highlighted
ian_jmp
Staff

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

Highlighted
ron_horne
Super User

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

 

Article Labels

    There are no labels assigned to this post.