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
Jackie_
Level VI

Side by side distribution plots for Tall table

Hi,

 

Is it possible to plot side by distribution plots in one graph with tall table?  something like Graph Builder?

Jackie__0-1692280255048.png

Something like this?

Jackie__2-1692280598398.png

 

BR, 

Jackie

18 REPLIES 18

Re: Side by side distribution plots

Yes, Graph Builder can do that. I've attached the example below.

Jed_Campbell_0-1692282425118.png

 

Jackie_
Level VI

Re: Side by side distribution plots

@Jed_Campbell  yes I am aware, but how to plot distribution histogram side by side in the same graph?

Jackie__0-1692282653914.png

 

Re: Side by side distribution plots

Sorry, @Jackie_, I must be misunderstanding what you're looking for. Or, perhaps I chose a bad data set with not enough data to make the shape of a histogram. Here's another example of side by side histograms in the Graph Builder. If this isn't what you're looking for, can you please clarify?

Jed_Campbell_0-1692283410592.png

 

Jackie_
Level VI

Re: Side by side distribution plots

@Jed_Campbell 

 

I think the data table I have is in tall format. So the tests are grouped in columns. Is there a way to plot side by side in graph builder with tall table? I have attached below

txnelson
Super User

Re: Side by side distribution plots

If you want a histogram for specific columns to be placed side by side, just drag all of them to the X axis and change the display to be a Histogram

txnelson_0-1692288917738.png

 

Jim

Re: Side by side distribution plots

@Jackie_ 

You can use the Tables...Stack command to change the orientation/format of your data. The attached workflow (assuming you have JMP 17 or greater) walks through how. I also added a local data filter, since the stacked data made the graph have very wide limits otherwise.

Jed_Campbell_0-1692289165926.png

 

Jackie_
Level VI

Re: Side by side distribution plots

Thanks @Jed_Campbell , I see you transposed the table. I think this approach works but wondering what if there's tall data table with >1M Rows?. I think transposing into Data columns wouldn't be best.

For ex: I stacked 252k rows and the final data table resulted 56M rows 

Jackie__1-1692291684850.png  

 

Jackie__2-1692291737661.png

 

 

 

txnelson
Super User

Re: Side by side distribution plots

Here is another way to do it

txnelson_1-1692284762231.png

Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "/C:/Program Files/SAS/JMPPRO/16/Samples/Data/big class.jmp" );
nw = New Window( "",
	H List Box(
		Distribution(
			uniform scaling( 1 ),
			Continuous Distribution(
				Column( :height ),
				Quantiles( 0 ),
				Summary Statistics( 0 ),
				Outlier Box Plot( 0 )
			),
			by( :age )
		)
	)
);

 

 

Jim

Re: Side by side distribution plots

You can also do this via the Oneway flavor of Fit Y By X:

 

Hists.png

 

// Open Data Table: Semiconductor Capability.jmp
// → Data Table( "Semiconductor Capability" )
Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

// Report snapshot: Semiconductor Capability - Fit Y by X of NPN1 by lot_id
Data Table( "Semiconductor Capability" ) << Oneway(
	Y( :NPN1 ),
	X( :lot_id ),
	Histograms( 1 )
);