<?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 Panel Scatter Plots with BY Group Processing in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Panel-Scatter-Plots-with-BY-Group-Processing/m-p/335691#M11664</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a panel of scatter plots in a pdf file for comparison. With the code below, each individual scatter plot is printed on one page. In total, there are 450+ distinct values of ID. Is there a way to panel the scatterplots so I can compare groups of IDs together on a single page? I realize all plots for the IDs won't fit on a single page, but it would be easier to scan a few pages than 450+!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or insights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dhrumil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods pdf file='path\scatter.pdf';

proc sgplot data=&amp;amp;dsn;
by ID;
scatter x=year y=fcst;
run;

ods pdf close;&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Feb 2017 18:24:25 GMT</pubDate>
    <dc:creator>dhrumil_patel</dc:creator>
    <dc:date>2017-02-24T18:24:25Z</dc:date>
    <item>
      <title>Panel Scatter Plots with BY Group Processing</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Panel-Scatter-Plots-with-BY-Group-Processing/m-p/335691#M11664</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a panel of scatter plots in a pdf file for comparison. With the code below, each individual scatter plot is printed on one page. In total, there are 450+ distinct values of ID. Is there a way to panel the scatterplots so I can compare groups of IDs together on a single page? I realize all plots for the IDs won't fit on a single page, but it would be easier to scan a few pages than 450+!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or insights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dhrumil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods pdf file='path\scatter.pdf';

proc sgplot data=&amp;amp;dsn;
by ID;
scatter x=year y=fcst;
run;

ods pdf close;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Panel-Scatter-Plots-with-BY-Group-Processing/m-p/335691#M11664</guid>
      <dc:creator>dhrumil_patel</dc:creator>
      <dc:date>2017-02-24T18:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Panel Scatter Plots with BY Group Processing</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Panel-Scatter-Plots-with-BY-Group-Processing/m-p/335701#M11665</link>
      <description>&lt;P&gt;This should work for you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='path\scatter.pdf';

proc sgpanel data=&amp;amp;dsn;
panelby ID;
scatter x=year y=fcst;
run;

ods pdf close; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can set the number of rows and/or columns for the panel, or just let the procedure try to find the best panel size for you.&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;</description>
      <pubDate>Fri, 24 Feb 2017 18:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Panel-Scatter-Plots-with-BY-Group-Processing/m-p/335701#M11665</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-24T18:43:07Z</dc:date>
    </item>
  </channel>
</rss>

