<?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: Multiple graphs per page with many graphs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598890#M172776</link>
    <description>&lt;P&gt;Have you looked at the ODS LAYOUT GRIDDED statement?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 02:11:28 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-10-24T02:11:28Z</dc:date>
    <item>
      <title>Multiple graphs per page with many graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598889#M172775</link>
      <description>&lt;P&gt;Hi all. I am trying to print 4 graphs per page to a PDF file. I have many graphs (200 for now) as I am drawing using PROC SGPLOT and BY statement. I searched online for the solution but all of them involve manually indicating the position of each graphs which is not ideal in my case. Is there a solution where I can tell SAS to print 4 graphs into 1 page instead of 1 big graph per page?&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=prices;
by stock;
series x=date y=price;
series x=date y= volume/y2axis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 02:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598889#M172775</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2019-10-24T02:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs per page with many graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598890#M172776</link>
      <description>&lt;P&gt;Have you looked at the ODS LAYOUT GRIDDED statement?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 02:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598890#M172776</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-24T02:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs per page with many graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598909#M172793</link>
      <description>&lt;P&gt;I did try it. but could not get it to work. I tried:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = "graphs.pdf" startpage=never; &lt;BR /&gt;ods layout gridded columns=2;

proc sgplot data=prices;
by stock;
series x=date y=price;
series x=date y= volume/y2axis;
run;

ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I got 4 graphs per page which is nice but they are all in 1 columns. I would like to get 2x2 or 3x3 graphs. That is 3 columns and 3 rows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 03:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598909#M172793</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2019-10-24T03:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs per page with many graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598915#M172798</link>
      <description>&lt;P&gt;No this?&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; layout gridded &lt;SPAN class="token keyword"&gt;columns&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2 rows=2&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 04:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/598915#M172798</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-24T04:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs per page with many graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/599067#M172852</link>
      <description>&lt;P&gt;You may want to consider SGPANEL instead of SGPLOT and use the By variable Stock as a Panelby variable. You can specify the number of columns of (across graphs) and an appropriate number of rows of graphs would be made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this and see if it gets close to what you want:&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=prices;
   panelby stock /columns=2;
   series x=date y=price;
   series x=date y= volume/y2axis;
run;&lt;/PRE&gt;
&lt;P&gt;There are a number of options on laying out the appearance depending on data.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-graphs-per-page-with-many-graphs/m-p/599067#M172852</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-24T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

