<?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: Output sgplots from multiple datasets into a single plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353704#M12294</link>
    <description>&lt;P&gt;Yes, use graph template language - you can get most ot the code by adding:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgplot&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydata1 tmplout="c:\temp.txt"&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In and looking at the created temp.txt file. &amp;nbsp;You can see a vast array of graphs, all different types/techniques with code examples in template, sgplot by looking at Sanjay's blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It contains almost every graph you can think of, so copy the code from there.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 14:14:47 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-04-26T14:14:47Z</dc:date>
    <item>
      <title>Output sgplots from multiple datasets into a single plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353694#M12293</link>
      <description>&lt;P&gt;I'd like to output two plots from these two different datasets to a single plot (side to side). Tried panelling with no success yet. Tried "thickness=n" to bolden up the lines a bit. No success yet, again. Any ideas for both issues? Using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "MODEL FIT TO DUPLICATE DATA";
proc sgplot data=mydata1;
   step x=ECDFX y=ECDFY / legendlabel="ECDF";
   step x=ECDFX y=NBCDF / legendlabel="Model Fit to Negative Binomial / Duplicated Data";
   step x=ECDFX y=PoisCDF / legendlabel="Model Fit to Poisson / Duplicated Data";
   xaxis grid label="Rate" offsetmin=0.0 offsetmax=0.0 min=0 max=80;
   yaxis grid min=0 label="Cumulative Proportion";
run;

title "MODEL FIT TO UNIQUE ENTITY DATA";
proc sgplot data=mydata2;
   step x=ECDFX y=ECDFY / legendlabel="ECDF";
   step x=ECDFX y=NBCDF / legendlabel="Model Fit to Negative Binomial / Unique Entity Data";
   step x=ECDFX y=PoisCDF / legendlabel="Model Fit to Poisson / Unique Entity Data";
   xaxis grid label="Rate" offsetmin=0.0 offsetmax=0.0 min=0 max=80;
   yaxis grid min=0 label="Cumulative Proportion";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353694#M12293</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2017-04-26T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Output sgplots from multiple datasets into a single plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353704#M12294</link>
      <description>&lt;P&gt;Yes, use graph template language - you can get most ot the code by adding:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sgplot&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydata1 tmplout="c:\temp.txt"&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In and looking at the created temp.txt file. &amp;nbsp;You can see a vast array of graphs, all different types/techniques with code examples in template, sgplot by looking at Sanjay's blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It contains almost every graph you can think of, so copy the code from there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353704#M12294</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-26T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Output sgplots from multiple datasets into a single plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353786#M12300</link>
      <description>&lt;P&gt;If the graphs are independent, you can place them side by side in a document like PDF or RTF using the ODS LAYOUT statement along with the ODS REGION statements. &amp;nbsp;If you really want the graphs in one PNG file, you should really use GTL, with a LAYOUT LATTICE. &amp;nbsp;See &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS096-2014.pdf" target="_blank"&gt;SASGF 2016 paper "Up Your Game with GTL Layouts"&lt;/A&gt;. &amp;nbsp;See topic "CREATING MULTI-CELL GRAPH WITH LAYOUTS LATTICE" on page 9. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-sgplots-from-multiple-datasets-into-a-single-plot/m-p/353786#M12300</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-04-26T16:40:43Z</dc:date>
    </item>
  </channel>
</rss>

