<?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: Displaying three SGPLOTS in a single frame in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328380#M17827</link>
    <description>&lt;P&gt;Couple of options:&lt;/P&gt;
&lt;P&gt;Ods layout gridded:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/Tipsheet_ods_layout.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/Tipsheet_ods_layout.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or greplay;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sgf/2016/09/16/do-you-need-multiple-graphs-on-a-page-we-have-got-you-covered/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2016/09/16/do-you-need-multiple-graphs-on-a-page-we-have-got-you-covered/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 12:58:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-30T12:58:17Z</dc:date>
    <item>
      <title>Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328375#M17826</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running SAS 9.2, and I'm&amp;nbsp;trying to display three different graphs horizontally, each of them from a different data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is this:&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;proc sgplot data=output_E;
series x=ORDEN_E y=E / lineattrs=(color=blue);
run;

proc sgplot data=output_M;
series x=maturity y=M / lineattrs=(color=red);
run;

proc sgplot data=output_V;
series x=ORDEN_V y=V / lineattrs=(color=green);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the output I get is this:&lt;/P&gt;&lt;P&gt;&lt;IMG title="E.png" alt="E.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6992i6155207AA484FF92/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG title="M.png" alt="M.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6993i56C3A91B32F0C55A/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG title="V.png" alt="V.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6994iF48476D0AE53E797/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to display it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="E.png" alt="E.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6992i6155207AA484FF92/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;IMG title="M.png" alt="M.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6993i56C3A91B32F0C55A/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;IMG title="V.png" alt="V.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6994iF48476D0AE53E797/image-size/small?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm modifying the linear drift of each plot simultaneously,&amp;nbsp;so that's why I want to see them in the same line, in order to compare how changes in&amp;nbsp;the linear drift&amp;nbsp;affects&amp;nbsp;the series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328375#M17826</guid>
      <dc:creator>Dario_Morales</dc:creator>
      <dc:date>2017-01-30T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328380#M17827</link>
      <description>&lt;P&gt;Couple of options:&lt;/P&gt;
&lt;P&gt;Ods layout gridded:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/Tipsheet_ods_layout.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/Tipsheet_ods_layout.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or greplay;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sgf/2016/09/16/do-you-need-multiple-graphs-on-a-page-we-have-got-you-covered/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2016/09/16/do-you-need-multiple-graphs-on-a-page-we-have-got-you-covered/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328380#M17827</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-30T12:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328484#M17828</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your fast response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying&amp;nbsp;both options you suggested with no success...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the option gridded in the ods layout statement doesn't work for me (I don't know if it is a problem of the SAS version [9.2] or the package required for the statement, for example I have not the IML package). I'm trying to run the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='Desktop\gridded.pdf';
ods layout gridded
columns=3 width=5in
column_gutter=.25in
style={background=lightgray};

ods region;
proc sgplot data=output_E;
series x=ORDEN_E y=E_original / lineattrs=(color=blue);
run;

ods region;
proc sgplot data=output_M;
series x=maturity y=M_original / lineattrs=(color=red);
run;

ods region;
proc sgplot data=output_V;
series x=ORDEN_V y=V_original / lineattrs=(color=green);
run;

ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I get several errors when trying:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Error1.png" alt="Error1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7011iE05C9CEAC5B4A13D/image-size/medium?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG title="error 2.png" alt="error 2.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7012i14A6F7703B4C1D11/image-size/medium?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry about the mix of spanish and english in the log, hope they have fixed that in posterior SAS versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another point is that I would like to do this in the &lt;EM&gt;SAS Report &lt;/EM&gt;format, because I don't need to create a file for the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The greplay statement seems to have the same issue, that an output pdf file is&amp;nbsp;required in order to show the results... I have tried to do it that way and I&amp;nbsp;managed to show 6 graphs in 3 columns and&amp;nbsp;2 rows, but it is not very practical for my purpose...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, thank you very much for your response!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328484#M17828</guid>
      <dc:creator>Dario_Morales</dc:creator>
      <dc:date>2017-01-30T16:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328491#M17829</link>
      <description>&lt;P&gt;Yes, maybe your version then. &amp;nbsp;What do you mean by "&lt;SPAN&gt; in the &lt;/SPAN&gt;&lt;EM&gt;SAS Report &lt;/EM&gt;&lt;SPAN&gt;format"? &amp;nbsp;Do you mean the output window? &amp;nbsp;If so then your not likely to get it there. &amp;nbsp;The output window is a very basic output system - has only just moved to HTML to get any kind of formatting at all. &amp;nbsp;Its not the place to be creating proper reports. &amp;nbsp;To get full functionality output to a file, one of the many types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What you could try is putting your three datasets together, with a column for the differentiation, and then proc sgpanel'ing them:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;data want;
  set output_e (in=a rename=(orden_e=x e_original=y)) 
       output_m (in=b rename=...) 
       output_v (in=c rename=...);
  if a then group="Abc";
  else if b then group="Def";
  else group="Ghi";
run;

proc sgpanel data=want;
  panelby group;
  series x=x y=y;
run;&lt;/PRE&gt;
&lt;P&gt;Oh, and move up to 9.4, many good things extra!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328491#M17829</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-30T16:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328565#M17836</link>
      <description>&lt;P&gt;I don't believe &lt;STRONG&gt;ODS&lt;/STRONG&gt;&amp;nbsp;layout gridded is supported in SAS 9.2. You may want to investigate Layout gridded and/or layout&amp;nbsp;overlay in the Graph Template Language.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328565#M17836</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-30T20:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying three SGPLOTS in a single frame</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328673#M17839</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once more for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I meant with &lt;EM&gt;SAS Report &lt;/EM&gt;format, was the format of the Results window, the option you can choose from Enterprise Guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Tools &amp;gt; Options &amp;gt; Results &amp;gt; Results general&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="report.png" alt="report.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7029iCC469A924FB5229B/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last option you suggested works almost great, I had to apply the columns=3 option in the panelby statement but the axis are being displayed identically for three plots, so I am losing vision here:&lt;/P&gt;&lt;P&gt;&lt;IMG title="sgpanel.png" alt="sgpanel.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7030i17489C3C7931CCE0/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, this is the best approach so far, thank you very much for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end I had to export the results to an xls file, set the linear drift as a parameter and run VBA in order to make the plots dynamic...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm considering moving up to 9.4 soon!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-three-SGPLOTS-in-a-single-frame/m-p/328673#M17839</guid>
      <dc:creator>Dario_Morales</dc:creator>
      <dc:date>2017-01-31T09:43:24Z</dc:date>
    </item>
  </channel>
</rss>

