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
RBAero
Level II

JMP Distribution Platform not arranging Distributions in Rows

Hi Team 

I have done this many times 

But all of a sudden today , i am not able to arrange my distributions in rows

See snapshots below 

I am using JMP15.2.1

Thanks for help

5 REPLIES 5
txnelson
Super User

Re: JMP Distribution Platform not arranging Distributions in Rows

The issue you are running into is that when you use a By() clause, the option to place the output into x number of rows, treats all of the graphs for a given parameter(column) as one element, regardless of the number of graphs produced by the By() clause.

A work around for this, is to create a new window and to use a LineUpBox() to specify the number of graphs per row

txnelson_0-1646156922450.png

Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );


New Window( "Distributions",
	Lineup Box( N Col( 3 ),
		Distribution(
			Arrange in Rows( 3 ),
			Continuous Distribution( Column( :height ) ),
			by( :age )
		)
	)
);

 

Jim
RBAero
Level II

Re: JMP Distribution Platform not arranging Distributions in Rows

Thanks Mr Nelson 
I am not so good with scripting in General 
is this an option available in Distribution platform which i can choose 
As this is happening now in my multiple datasets

Ranjit

txnelson
Super User

Re: JMP Distribution Platform not arranging Distributions in Rows

It is not a Distribution Platform option.  It is only available in JSL

Jim
RBAero
Level II

Re: JMP Distribution Platform not arranging Distributions in Rows

I think i have an issue with my script too

When i run my distribution By years & save it, 

While running it again it only pull 2018 Year data, see snippet & script below.

 

Distribution(
Arrange in Rows( 3 ),
Continuous Distribution(
Column( :Calorific Content ),
Horizontal Layout( 1 ),
Vertical( 0 )
),
Where( :Years == 2018 )
)

 

RBAero_0-1646164492850.png

 

txnelson
Super User

Re: JMP Distribution Platform not arranging Distributions in Rows

There are 2 separate selections when you Save Script for Distribution.

  1. Save Script
  2. Save By Group Script

You apparently selected the Save Script, which will output the script for just the Group you selected the red triangle from

 

You need the Save Script , which outputs with the By clause

Distribution( Continuous Distribution( Column( :height ) ), By( :age ) );
Jim