cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
johnm
Level III

Fit Y by X Graphs created in a row rather than column?

Hello,

 

The Fit Y by X when used to plot multiple Y,Responses and/or to plot multiple By variables, creates the plots in a single column.

 

I am wondering if there is way to make the plots appear in a row instead.

 

I have limited success trying to script such. But please if there are some methods to make this possible, please post.

 

thanks,

John

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Fit Y by X Graphs created in a row rather than column?

I am glad that the scripting option works for you, but regular JMP version 12 does still have the ability to arrange the graphs in rows. Perhaps this screen capture will show you where to click. The VERY TOP outline item will say Fit Group. That red pop-up will have the Arrange in Rows.

Capture.JPG

 

Although this screen capture was on Oneway and not Bivariate, it looks exactly the same for Bivariate.

Dan Obermiller

View solution in original post

14 REPLIES 14
txnelson
Super User

Re: Fit Y by X Graphs created in a row rather than column?

look under the red triangle, and select "Arange in Rows".

 

 

Jim
johnm
Level III

Re: Fit Y by X Graphs created in a row rather than column?

Hi Jim,

 

in the Graph > Cell Plots menu I do find:  it seems X,Grouping warns when using continuous data, and prefers nominal or ordinal. (I am plotting continuous data.)

 

In Fit Y by X, in the plots I am making, there are four graphs produced and these graphs are in a single column aka one column and four rows in my output window. I have an interest to have the four graphs in a single row aka, one row and four columns.

 

Thanks,

John

 

txnelson
Super User

Re: Fit Y by X Graphs created in a row rather than column?

After you have run your plots in Fit Y by X, you can go to the red triangle in the output, and select Rarange in Rows

data as column.png

Which will give you

 

data as row.png

 

What am I missing?

 

Jim
johnm
Level III

Re: Fit Y by X Graphs created in a row rather than column?

Looks like what you're missing is you are using JMP Pro.

I am using JMP12. That is probably this issue.

At least that is what I suspect as to why I do not see that menu.


txnelson
Super User

Re: Fit Y by X Graphs created in a row rather than column?

I suspect you are correct.  Yes, I am running JMP Pro.  If running a script fits into your posibilities of a solution, here is a very simple script that will do what you want

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

ycolList = {"NPN1", "PNP1", "NPN2", "PNP2"};

New Window( "FIT By Y Outputs",
	H List Box(
		For( I = 1, i <= N Items( Ycollist ), i++,
			Oneway( Y( Column( dt,ycollist[i] ) ), X( :wafer ) )
		)
	)
)
;
Jim
johnm
Level III

Re: Fit Y by X Graphs created in a row rather than column?

Hi Jim,



Your script was helpful. Thanks.

Example using the H List Box() in the following script does the trick:


////////
Names Default To Here( 1 );
dt = Open( "C:\Program Files\SAS\JMP\12\Samples\Data\Semiconductor Capability.jmp" );

dt:SITE << modeling type(continuous);
dt << select where (:lot_id == "lot1" | :lot_id == "lot2");
dt << invert row selection;
dt << hide;
dt << exclude;

dt << select where (:wafer == 1 | :wafer == 2);
dt << invert row selection;
dt << hide;
dt << exclude;
dt << clear select;

new window("example",
H List Box(
Bivariate( Y( :NPN1 ), X( :SITE ), by (:lot_id, :wafer) );
));




Re: Fit Y by X Graphs created in a row rather than column?

Hi John,
You should see this function in JMP12 ("Arrange in Rows"). Click red triangle under "Fit Group".
Vlad
johnm
Level III

Re: Fit Y by X Graphs created in a row rather than column?

Hi Vlad,



Could not find "Arrange in Rows" in the Bivariate Fit in JMP12. Maybe an example can show the detail.



However, the following script makes use the of horizontal list box:


////////
Names Default To Here( 1 );
dt = Open( "C:\Program Files\SAS\JMP\12\Samples\Data\Semiconductor Capability.jmp" );

dt:SITE << modeling type(continuous);
dt << select where (:lot_id == "lot1" | :lot_id == "lot2");
dt << invert row selection;
dt << hide;
dt << exclude;

dt << select where (:wafer == 1 | :wafer == 2);
dt << invert row selection;
dt << hide;
dt << exclude;
dt << clear select;

new window("example",
H List Box(
Bivariate( Y( :NPN1 ), X( :SITE ), by (:lot_id, :wafer) );
));






Re: Fit Y by X Graphs created in a row rather than column?

Just as H List Box() created the horizontal layout that you prefer, Line Up Box( n cols, ... ) gives similar layout but allows you to have wrap the contents with n cols items per row.if it is getting too wide for you.