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
aliegner1
Level IV

control location of display charts? histogram on Fit Y by X

So I'm trying to script a standard display, but the script output is *different8 than just selecting the dropdown. Anyway to control location of added items?

 

 

example:

aliegner1_0-1622564897905.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: control location of display charts? histogram on Fit Y by X

Forcing the order by specifying specific JSL commands your desired outcome can be obtained.

force.PNG

names default to here(1);
dt=open("$sample_data/big class.jmp");
//dt<<color by column(:sex);
ow = Oneway(
	Y( :height ),
	X( :sex ),
	Box Plots( 1 ));
report(ow)[FrameBox(1)] << Row Legend("sex");
ow << histograms(1);
Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: control location of display charts? histogram on Fit Y by X

Forcing the order by specifying specific JSL commands your desired outcome can be obtained.

force.PNG

names default to here(1);
dt=open("$sample_data/big class.jmp");
//dt<<color by column(:sex);
ow = Oneway(
	Y( :height ),
	X( :sex ),
	Box Plots( 1 ));
report(ow)[FrameBox(1)] << Row Legend("sex");
ow << histograms(1);
Jim
aliegner1
Level IV

Re: control location of display charts? histogram on Fit Y by X

@txnelson @Mark_Bailey 

thank you. this works great....except when I journal the results. it automatically moves the legend over to the right.

 

Any thoughts?

txnelson
Super User

Re: control location of display charts? histogram on Fit Y by X

This works for me

names default to here(1);
dt=open("$sample_data/big class.jmp");
//dt<<color by column(:sex);
ow = Oneway(
	Y( :height ),
	X( :sex ),
	Box Plots( 1 ));
report(ow)[FrameBox(1)] << Row Legend("sex");
ow << histograms(1);

report(ow)<<journal;
Jim

Re: control location of display charts? histogram on Fit Y by X

The histogram is added to the current display. Enable it after adding the row legend if you want it to the far right. Add the histogram before the row legend if you want it in between.