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
sanqub
Level III

How to rearrange tables/results in JMP distribution and ultimately create an application in JSL?

Dear All,

Suppose, I have two data sets. I am using standard example Sample library>> Big Class.jmp.

Data set 1: All the 40 students of a class.

Data set 2: Subset of just female students of the the class.

Need: I would like to compare distribution of [age,sex,height,weight] for Dataset 1 and 2.

For this I open both the reports, combine these reports using JMP>file> application. When I combine applications the distribution of age,sex,height,weight are in single window.

But I want in a form age(data set1) and age(data set 2) side by side and in same scale. then height(data set1) and height(data set 2) side by side and in same scale and so on for all other parameters in a single window.

My actual data sets are quiet large and it would be quiet useful when a parameter of data set1 and data set2 are side by side for easier comparison. 

 

 

1 REPLY 1
ian_jmp
Staff

Re: How to rearrange tables/results in JMP distribution and ultimately create an application in JSL?

Perhaps you have a specific reason to want to use 'Distribution'. But you could also consider stacking your two tables and using 'Fit Y By X'. The code below shows the idea:

NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Fit Group(
			Oneway(
				Y( :height ),
				X( :sex ),
				Histograms( 1 ),
				SendToReport(
					Dispatch( {}, "Oneway Plot", FrameBox, {Frame Size( 174, 240 )} )
				)
			),
			Oneway(
				Y( :weight ),
				X( :sex ),
				Histograms( 1 ),
				SendToReport(
					Dispatch( {}, "Oneway Plot", FrameBox, {Frame Size( 148, 240 )} )
				)
			),
			<<{Arrange in Rows( 2 )}
		);

which gives:

Screen Shot 2017-02-07 at 15.30.59.png