cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

Dot marker colour not showing up in loop for variability chart.

Hi, 

I wish to plot the box plot with marker colour according to one of the variable. It is working fine in single plot. However, when plotting the graph in a loop. the colour is not showing up. Would like to ask for help. 

dt = Open("C:\test24_data\JSL\data.csv", Invisible);

dt_parameter = Open("C:\test24_data\JSL\parameter.csv", Invisible);

spec_dt = Open("C:\test24_data\JSL\spec_df.csv", Invisible);

nw = New Window( "graphs", myVLB = V List Box() );

//get_column into list 
_dt0 = dt_parameter << Summary(
	Group( :Parameters),
	Freq( "None" ),
	Weight( "None" )
, Invisible);
dt_param_lst = column("Parameters") << GetAsMatrix();

Print(dt_param_lst);

_dt1 = dt << Summary(
	Group( :SpecName ),
	Freq( "None" ),
	Weight( "None" )
, Invisible);

spec_lst = column("SpecName") << GetAsMatrix();

Print(spec_lst);

_dt2 = spec_dt << Summary(
	Group( :parametername ),
	Freq( "None" ),
	Weight( "None" )
, Invisible);

spec_param_lst = column("parametername") << GetAsMatrix();

Print(spec_param_lst);

for (i = 1, i <= NItems(dt_param_lst), i++,
	
	//par = cols_to_plot[i];
	
	graph = dt << Variability Chart(
		Y( Column(dt_param_lst[i]) ),
		X( :Purpose,  :Reel ),
		Color( :Pass_Bin ), 
		Std Dev Chart( 0 ),
		Points Jittered( 1 ),
		Show Box Plots( 1 ),
		SendToReport(
			Dispatch(
				{"Variability Chart for " || dt_param_lst[i]},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Pass_Bin,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	);

 

 

1 REPLY 1

Re: Dot marker colour not showing up in loop for variability chart.

Did you try using

dt_param_lst

in the By role?