<?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: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT and GREPLAY in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/507503#M17282</link>
    <description>&lt;P&gt;Can this method also work for generating multiple plots per page (say in a 2x2 layout)?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 15:16:43 GMT</pubDate>
    <dc:creator>Doug____</dc:creator>
    <dc:date>2018-10-25T15:16:43Z</dc:date>
    <item>
      <title>How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT and GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394740#M13534</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a good idea to use SGPLOT to generate a serial of graphs (two graphs per page) and re-order the display sequence? For example,&amp;nbsp;graph 1 and&amp;nbsp;5 for the&amp;nbsp;1st page, 2 and 6 for 2nd page, etc. I always have to make a macro loop to do that for SGPLOT. It used to be&amp;nbsp;done by&amp;nbsp;PLOT + GREPLAY.&amp;nbsp;&amp;nbsp;I hope there is any simple solution. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394740#M13534</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2017-09-11T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394742#M13535</link>
      <description>&lt;P&gt;The BY statement works with SGPLOT as is does with GPLOT. What issues have you found with it?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 16:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394742#M13535</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-09-11T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394754#M13537</link>
      <description>&lt;PRE&gt;proc sort data=sashelp.class out=classsort;
  by sex;
run;

proc sgplot data=classsort;
   by sex;
   scatter x=height y=weight;
run;&lt;/PRE&gt;
&lt;P&gt;Should create one graph per page in ODS destinations such as ODS RTF, PDF or one per worksheet in Excel or tagsets.excelxp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394754#M13537</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-11T17:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394765#M13539</link>
      <description>&lt;P&gt;Thank you for your quick response. I update my post to clarify my question. Basically it there any simple way as GREPLAY to re-order the display in SGPLOT?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394765#M13539</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2017-09-11T17:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394774#M13540</link>
      <description>&lt;P&gt;You can use ODS DOCUMENT to do that. The example below replays everything in the reverse order in which it was created, but you can get the proc to replay any of the pieces in any order you want. Use the LIST command in the proc to get the paths to replay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods document name=scat;
proc sort data=sashelp.class out=class; by sex; run;
proc sgplot data=class;
by sex;
scatter x=weight y=height;
run;
ods _all_ close;

ods html;
proc document name=scat;
replay SGPlot#1\BYGroup2#1\SGPlot#1;
replay SGPlot#1\BYGroup1#1\SGPlot#1;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394774#M13540</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-09-11T17:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394794#M13541</link>
      <description>&lt;P&gt;Thank you. combination of ODS&amp;nbsp;document and proc document work.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/394794#M13541</guid>
      <dc:creator>MINX</dc:creator>
      <dc:date>2017-09-11T17:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT and GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/395509#M13552</link>
      <description>&lt;P&gt;For a general overview of using PROC DOCUMENT to reorder the output, see &lt;A href="http://blogs.sas.com/content/iml/2017/03/06/reorder-output-group-analysis-sas.html" target="_self"&gt;"Reorder the output from a BY-group analysis in SAS," &lt;/A&gt;which contains many links for further reading.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/395509#M13552</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-13T12:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT and GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/507503#M17282</link>
      <description>&lt;P&gt;Can this method also work for generating multiple plots per page (say in a 2x2 layout)?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/507503#M17282</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2018-10-25T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a serial of graphs by SGPLOT as we use BY statement in PROC GPLOT and GREPLAY</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/507507#M17283</link>
      <description>&lt;P&gt;For most applications, if you want a panel that shows multiple graphs, you can&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0zgx9a7en0g5vn1tjpja6sxdiwr.htm&amp;amp;locale=en" target="_self"&gt;use PROC SGPANEL.&lt;/A&gt;&amp;nbsp;There are examples in the doc. For a&amp;nbsp;2-D lattice example, see &lt;A href="https://blogs.sas.com/content/iml/2016/11/23/sampling-variation-small-samples.html" target="_self"&gt;this blog post&lt;/A&gt;, which shows how to use the PANELBY&amp;nbsp;statement:&lt;/P&gt;
&lt;PRE class="sas"&gt;&lt;SPAN&gt;proc sgpanel&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=&lt;SPAN&gt;Have&lt;/SPAN&gt;;
   panelby ID /  rows=2 columns=2 onepanel;
   /* graph statements go here */
&lt;SPAN&gt;run&lt;/SPAN&gt;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-generate-a-serial-of-graphs-by-SGPLOT-as-we-use-BY/m-p/507507#M17283</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-25T15:39:39Z</dc:date>
    </item>
  </channel>
</rss>

