<?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 Use GPLOT Overlay option to plot multiple series in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55661#M1900</link>
    <description>proc gplot data=abc;&lt;BR /&gt;
plot x1*date  ;&lt;BR /&gt;
where x3='1: &amp;lt; 24';&lt;BR /&gt;
by x4 ;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
x4 is a character variable. THe abovecode generates a separate graph for each value in x4. How do I overlay all the series in one graph</description>
    <pubDate>Mon, 26 Jul 2010 13:39:30 GMT</pubDate>
    <dc:creator>DB_ECON</dc:creator>
    <dc:date>2010-07-26T13:39:30Z</dc:date>
    <item>
      <title>Use GPLOT Overlay option to plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55661#M1900</link>
      <description>proc gplot data=abc;&lt;BR /&gt;
plot x1*date  ;&lt;BR /&gt;
where x3='1: &amp;lt; 24';&lt;BR /&gt;
by x4 ;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
x4 is a character variable. THe abovecode generates a separate graph for each value in x4. How do I overlay all the series in one graph</description>
      <pubDate>Mon, 26 Jul 2010 13:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55661#M1900</guid>
      <dc:creator>DB_ECON</dc:creator>
      <dc:date>2010-07-26T13:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use GPLOT Overlay option to plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55662#M1901</link>
      <description>Hi:&lt;BR /&gt;
  Look at this example in the doc:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#/documentation/cdl/en/graphref/63022/HTML/default/gplvrbl2-ex.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#/documentation/cdl/en/graphref/63022/HTML/default/gplvrbl2-ex.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Of particular relevance to your question is the syntax:&lt;BR /&gt;
[pre]&lt;BR /&gt;
plot faren*month=city  / .... more options ....;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 26 Jul 2010 14:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55662#M1901</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-26T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use GPLOT Overlay option to plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55663#M1902</link>
      <description>There are basically 2 ways to overlay lines in gplot ...&lt;BR /&gt;
&lt;BR /&gt;
As Cynthia mentioned, you can probably use "plot y*x=z" (where z is what you were using as the by variable).&lt;BR /&gt;
&lt;BR /&gt;
Or, you can use something like "plot y1*x y2*x y3*x / overlay" - for this technique, you'd probably have to transpose your data, and it requires hard-coding all the (new) variable names in the plot statement.  It's hard to get real specific without seeing the exact data, but basically you would have to transpose your data (proc transpose) so that you're basically turning the text values into variable names, with the x1 numeric values becoming the values of the new variables.&lt;BR /&gt;
&lt;BR /&gt;
You'll probably want to go with Cynthia's technique, but just wanted to mention the 2nd alternative!</description>
      <pubDate>Mon, 26 Jul 2010 15:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55663#M1902</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-07-26T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use GPLOT Overlay option to plot multiple series</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55664#M1903</link>
      <description>Thanks Cynthia  and Robert for your suggestions...</description>
      <pubDate>Mon, 26 Jul 2010 17:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Use-GPLOT-Overlay-option-to-plot-multiple-series/m-p/55664#M1903</guid>
      <dc:creator>DB_ECON</dc:creator>
      <dc:date>2010-07-26T17:37:41Z</dc:date>
    </item>
  </channel>
</rss>

