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
Re: Fit Y by X Graphs created in a row rather than column?It is asking just for the number of graphs in a single row, so just enter 60Re: Fit Y by X Graphs created in a row rather than column?Hi,
I have the same issue on single dependent var. How i able to arrange by row if i am using single dependent Fit Y by X?
Re: Fit Y by X Graphs created in a row rather than column?How to arrange in multi-rows at the same time? e.g. there are totally 120 graphs in one column, which I want to rearrange into 2 graphs x 60 rows.
I tried Ctrl+Shift, but was asked to enter the number of graphs for each row, i.e. enter "2" for 60 times. And I was not allowed to give up/exit before finishing the 60x input of "2". (JMP 12 and 13)
Could you tell me how to do it correctly?
Thanks.
Re: Fit Y by X Graphs created in a row rather than column?Hello Everyone,
I understand now why I wasn't seeing "Fit Group".
I was doing only a single dependent var.
For 2 or more depen vars, the Fit Group will then appear in the output window.
Thanks for the insights and feedback.
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;
//// one dependent var:
Bivariate( Y( :NPN1 ), X( :SITE ), by( :lot_id, :wafer ) );
//// two or more dependent var and Fit Group will appear in output window:
Bivariate( Y( :NPN1, :PNP1 ), X( :SITE ), by( :lot_id, :wafer ) );
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.

Although this screen capture was on Oneway and not Bivariate, it looks exactly the same for Bivariate.
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.
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?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".
VladRe: 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 ) )
)
)
)
;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.
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

Which will give you

What am I missing?
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
Re: Fit Y by X Graphs created in a row rather than column?look under the red triangle, and select "Arange in Rows".