cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Neo
Neo
Level VI

How to send the second chart in a distribution by group to a journal using JSL?

Hi, I am back with another issue I am having with an example script. 

Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp"); //loads data table
include ("plotScatterPlot.jsl"); // plots a 3D scatter plot 
Window ("Big Class - Scatterplot 3D of age, height")[outlinebox(1)]<< journal; 
include ("distributionBySex.jsl");
Window ("Big Class - Distribution")[outlinebox(1)]<< journal;

where where plotScatterPlot.jsl and distributionBySex.jsl respectively contain

Scatt3D = dt << Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );
Names Default To Here (1);
Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	By( :sex )
)

which when run produce two chart windows called "Big Class - Scatterplot 3D of age" and "Big Class - Distribution" respectively. 

 

Now, how to put the second chart of the distribution by sex into the journal already created above?

The line

Window ("Big Class - Distribution")[outlinebox(1)]<< journal;

only puts the top chart Distribution sex = F in the journal. I need to put the bottom chart Distribution sex = M in the existing journal. How to achieve this?

Thanks. 

 

 

 

When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to send the second chart in a distribution by group to a journal using JSL?

  1. Please take the time to read the Scripting Guide found in the JMP Documentation Library available under the Help pull down menu.  There is a section that deals with the handling of Display Trees, which will help you with issues like the one you are having.
  2. You can use the following to upload to the journal the output from the Distribution Platform
    Window ("Big Class - Distribution")["Distributions sex=F"]<< journal; 
    Window ("Big Class - Distribution")["Distributions sex=M"]<< journal;
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: How to send the second chart in a distribution by group to a journal using JSL?

  1. Please take the time to read the Scripting Guide found in the JMP Documentation Library available under the Help pull down menu.  There is a section that deals with the handling of Display Trees, which will help you with issues like the one you are having.
  2. You can use the following to upload to the journal the output from the Distribution Platform
    Window ("Big Class - Distribution")["Distributions sex=F"]<< journal; 
    Window ("Big Class - Distribution")["Distributions sex=M"]<< journal;
Jim