<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to send the second chart in a distribution by group to a journal using JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-send-the-second-chart-in-a-distribution-by-group-to-a/m-p/422158#M67117</link>
    <description>&lt;P&gt;Hi, I am back with another issue I am having with an example script.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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)]&amp;lt;&amp;lt; journal;&amp;nbsp;
include ("distributionBySex.jsl");
Window ("Big Class - Distribution")[outlinebox(1)]&amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where&amp;nbsp;&lt;SPAN&gt;where&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="  language-jsl"&gt;plotScatterPlot&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;jsl and &lt;CODE class=" language-jsl"&gt;distributionBySex.jsl respectively &lt;/CODE&gt;contain&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Scatt3D = dt &amp;lt;&amp;lt; Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);
Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	By( :sex )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which when run produce two chart windows called "Big Class - Scatterplot 3D of age" and&amp;nbsp;"Big Class - Distribution" respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, how to put the &lt;STRONG&gt;second chart&lt;/STRONG&gt; of the distribution by sex into the journal already created above?&lt;/P&gt;&lt;P&gt;The line&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Window ("Big Class - Distribution")[outlinebox(1)]&amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;only puts the top chart &lt;STRONG&gt;Distribution sex = F&lt;/STRONG&gt; in the journal. I need to put the bottom chart &lt;STRONG&gt;Distribution sex = M &lt;/STRONG&gt;in the existing journal. How to achieve this?&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:17:50 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-06-11T11:17:50Z</dc:date>
    <item>
      <title>How to send the second chart in a distribution by group to a journal using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-the-second-chart-in-a-distribution-by-group-to-a/m-p/422158#M67117</link>
      <description>&lt;P&gt;Hi, I am back with another issue I am having with an example script.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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)]&amp;lt;&amp;lt; journal;&amp;nbsp;
include ("distributionBySex.jsl");
Window ("Big Class - Distribution")[outlinebox(1)]&amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where&amp;nbsp;&lt;SPAN&gt;where&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="  language-jsl"&gt;plotScatterPlot&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;jsl and &lt;CODE class=" language-jsl"&gt;distributionBySex.jsl respectively &lt;/CODE&gt;contain&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Scatt3D = dt &amp;lt;&amp;lt; Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);
Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	),
	By( :sex )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which when run produce two chart windows called "Big Class - Scatterplot 3D of age" and&amp;nbsp;"Big Class - Distribution" respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, how to put the &lt;STRONG&gt;second chart&lt;/STRONG&gt; of the distribution by sex into the journal already created above?&lt;/P&gt;&lt;P&gt;The line&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Window ("Big Class - Distribution")[outlinebox(1)]&amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;only puts the top chart &lt;STRONG&gt;Distribution sex = F&lt;/STRONG&gt; in the journal. I need to put the bottom chart &lt;STRONG&gt;Distribution sex = M &lt;/STRONG&gt;in the existing journal. How to achieve this?&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:17:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-the-second-chart-in-a-distribution-by-group-to-a/m-p/422158#M67117</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-11T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the second chart in a distribution by group to a journal using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-the-second-chart-in-a-distribution-by-group-to-a/m-p/422179#M67122</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Please take the time to read the Scripting Guide found in the JMP Documentation Library available under the Help pull down menu.&amp;nbsp; There is a section that deals with the handling of Display Trees, which will help you with issues like the one you are having.&lt;/LI&gt;
&lt;LI&gt;You can use the following to upload to the journal the output from the Distribution Platform
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Window ("Big Class - Distribution")["Distributions sex=F"]&amp;lt;&amp;lt; journal; 
Window ("Big Class - Distribution")["Distributions sex=M"]&amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:31:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-the-second-chart-in-a-distribution-by-group-to-a/m-p/422179#M67122</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-29T17:31:20Z</dc:date>
    </item>
  </channel>
</rss>

