- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How to send the second chart in a distribution by group to a journal using JSL?
- 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.
- 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
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How to send the second chart in a distribution by group to a journal using JSL?
- 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.
- 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