<?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 Re: Saving multiple graphs in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108205#M39369</link>
    <description>&lt;P&gt;Beautiful! I had tried a similar approach looping through the N Items and trying to append within each loop, but still couldn't make it work. But I wasn't using a Jounal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice with doing the same thing but saving to a PowerPoint? In particular, formatting the ppt? I went with using Word because it gives one analysis per page ( one Oneway and one Normal Quantile Plot, and the titles looked normal). Whereas, with ppt it takes 3 pages for one analysis&amp;nbsp;and the formatting is whacked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 15:02:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-29T15:02:34Z</dc:date>
    <item>
      <title>Saving multiple graphs in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108141#M39345</link>
      <description>&lt;P&gt;Hi, I'm running this script where dataCols are numeric columns.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OWA = Data Table ("Filtered_raw") &amp;lt;&amp;lt; Oneway( 
		Y(eval( dataCols)), 
		X( " WhichTest"),
		Each Pair( 0 ),
		Means( 0 ),
		Plot Actual by Quantile( 0 ),
		Plot Quantile by Actual( 1 ),
		Mean Diamonds( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This creates Oneway Analysis and Normal Quantile plots of my numeric columns. Now I'm trying to save these plots with this script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OWA &amp;lt;&amp;lt; report;
OWA &amp;lt;&amp;lt; Save MSWord( "\\snl\home\malepp\Software\JMP\JMP_Report\Oneway_normalQ.doc");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem is it only saves the Oneway/Quantile plot from the last column. How do I save all of them to the document?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 21:57:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108141#M39345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T21:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108144#M39347</link>
      <description>&lt;P&gt;The issue you are running into is that there is not one report output but rather n number of outputs based upon the the actual number of OneWay analyses performed.&amp;nbsp; So when you do your Save MSWord, it goes one by one saving each output.&amp;nbsp; However, it does not append the output to the .doc file, but rather replaces it.&amp;nbsp; So what needs to be done is to place each of the outputs into a JMP Journal, and then save the Journal.&amp;nbsp; This is what is done in the script below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Setup an Example Data table
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );
dataCols = dt &amp;lt;&amp;lt; get column names( continuous );
dt:Dose &amp;lt;&amp;lt; set name( "WhichTest" );
dt &amp;lt;&amp;lt; set name( "Filtered_raw" );

// Run the charts
OWA = Data Table( "Filtered_raw" ) &amp;lt;&amp;lt; Oneway(
	Y( Eval( dataCols ) ),
	X( " WhichTest" ),
	Each Pair( 0 ),
	Means( 0 ),
	Plot Actual by Quantile( 0 ),
	Plot Quantile by Actual( 1 ),
	Mean Diamonds( 1 )
);

// Create a Journal to store the output in
jj = New Window( "The Output", &amp;lt;&amp;lt;journal, vlb = V List Box() );

// Loop across all of the different output in the OneWay and
// copy the output to the journal
For( i = 1, i &amp;lt;= N Items( OWA ), i++,
	vlb &amp;lt;&amp;lt; append( Report( OWA[i] )[Outline Box( 1 )] )
);

// Save the journal to disk
jj &amp;lt;&amp;lt; Save MSWord( "\\snl\home\malepp\Software\JMP\JMP_Report\Oneway_normalQ.doc" );

jj &amp;lt;&amp;lt; close window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Jan 2019 23:04:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108144#M39347</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-28T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108205#M39369</link>
      <description>&lt;P&gt;Beautiful! I had tried a similar approach looping through the N Items and trying to append within each loop, but still couldn't make it work. But I wasn't using a Jounal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice with doing the same thing but saving to a PowerPoint? In particular, formatting the ppt? I went with using Word because it gives one analysis per page ( one Oneway and one Normal Quantile Plot, and the titles looked normal). Whereas, with ppt it takes 3 pages for one analysis&amp;nbsp;and the formatting is whacked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:02:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108205#M39369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T15:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108230#M39376</link>
      <description>&lt;P&gt;To add on to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;'s reply, you can eliminate the For() loop by sending the Journal message to the list of Oneway objects.&amp;nbsp; Because OWA represents a list, the Journal message is sent to each item in the list.&amp;nbsp; Then all you need to do is obtain a reference to the journal using the Current Journal() function.&amp;nbsp; Below is an altered version of the above example script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Setup an Example Data table
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );
dataCols = dt &amp;lt;&amp;lt; get column names( continuous );
dt:Dose &amp;lt;&amp;lt; set name( "WhichTest" );
dt &amp;lt;&amp;lt; set name( "Filtered_raw" );

// Run the charts
OWA = Data Table( "Filtered_raw" ) &amp;lt;&amp;lt; Oneway(
	Y( Eval( dataCols ) ),
	X( "WhichTest" ),
	Each Pair( 0 ),
	Means( 0 ),
	Plot Actual by Quantile( 0 ),
	Plot Quantile by Actual( 1 ),
	Mean Diamonds( 1 )
);

// Create a journal containing each Oneway
OWA &amp;lt;&amp;lt; Journal;
// Obtain a reference to the journal
jj = Current Journal();

// Save the journal to disk
jj &amp;lt;&amp;lt; Save MSWord( "$DOCUMENTS\Oneway_normalQ.doc" );

jj &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108230#M39376</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2019-01-29T16:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108239#M39381</link>
      <description>&lt;P&gt;Much better code.........thanks Wendy&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:03:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-JSL/m-p/108239#M39381</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-29T18:03:52Z</dc:date>
    </item>
  </channel>
</rss>

