<?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: Organize sgplot output ... matrix of plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874422#M23778</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded columns=2 advance=table;
ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi Rick!&lt;/P&gt;
&lt;P&gt;This did it. Thank you very much! The link to provided is great!&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Folkert&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 10:37:08 GMT</pubDate>
    <dc:creator>fja</dc:creator>
    <dc:date>2023-05-08T10:37:08Z</dc:date>
    <item>
      <title>Organize sgplot output ... matrix of plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874398#M23774</link>
      <description>&lt;P&gt;Dear Community!&lt;/P&gt;
&lt;P&gt;I produce a few histograms using sgplot that result in a list (i.e. one column) of plots. Now I wonder if one could have that output to a two column list or - more generally speaking - to a nxm matrix like panel ...&lt;/P&gt;
&lt;P&gt;Actually I expected this to&amp;nbsp; be a FAQ but i could not spot any entry in this forum dealing with it. Might be that I picked the wrong keywords ... or that I am barking up the wrong tree alltogether.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any hint is appreciated.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Fja&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* just for illustrating what I am doing. hence, no data provided*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
  by GroupCol;
  histogram xCol / FREQ=yCol;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;edit:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;... I should have mentioned that SGPANEL does not seem to be an option, as the graphs are stuck together sharing axis lables ... I am actually aiming at keeping the plots separate and just changing the fashion/order in which&amp;nbsp; they are displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874398#M23774</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-05-08T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Organize sgplot output ... matrix of plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874414#M23775</link>
      <description>&lt;P&gt;Example of histograms using PROC SGPANEL: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/n1nxbz16c4f9b4n1nnrd3aaor1lw.htm#n1nxbz16c4f9b4n1nnrd3aaor1lw" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/n1nxbz16c4f9b4n1nnrd3aaor1lw.htm#n1nxbz16c4f9b4n1nnrd3aaor1lw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize you have presented to us fake code, but you should still make sure it at least makes sense. This line makes no sense:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; histogram xCol / FREQ=xCol;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2023 09:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874414#M23775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-08T09:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Organize sgplot output ... matrix of plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874417#M23776</link>
      <description>&lt;P&gt;Correct. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ... but "fake" code is a bit harsh, is it not? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874417#M23776</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-05-08T09:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Organize sgplot output ... matrix of plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874419#M23777</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;... I should have mentioned that SGPANEL does not seem to be an option, as the graphs are stuck together sharing axis lables ... I am actually aiming at keeping the plots separate and just changing the fashion/order in which&amp;nbsp; they are displayed.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you want to use the&amp;nbsp;ODS LAYOUT GRIDDED to display two graphs on each rows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded columns=2 advance=table;
&amp;nbsp; &amp;nbsp;proc sgplot data=have;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;by GroupCol;
&amp;nbsp;   &amp;nbsp; histogram xCol;
&amp;nbsp; run;
ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;DIscussion and examples of the ODS GRIDDED LAYOUT statement at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2022/07/13/ods-graphs-panel.html" target="_self"&gt;Use ODS to arrange graphs in a panel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874419#M23777</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-05-08T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Organize sgplot output ... matrix of plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874422#M23778</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded columns=2 advance=table;
ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi Rick!&lt;/P&gt;
&lt;P&gt;This did it. Thank you very much! The link to provided is great!&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Folkert&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Organize-sgplot-output-matrix-of-plots/m-p/874422#M23778</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-05-08T10:37:08Z</dc:date>
    </item>
  </channel>
</rss>

