<?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: Multiple Series and Multiple Reference Lines on Bar Graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226818#M8217</link>
    <description>&lt;P&gt;Instead of plotting two separate series it may be better to create a group variable to define which value is associated with the series.&lt;/P&gt;&lt;P&gt;With SGPLOT you would have a VBAR statement using that group variable. One example is here: &lt;A href="http://support.sas.com/kb/43/731.html" target="_blank"&gt;http://support.sas.com/kb/43/731.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also you can add one or more REFLINE statements, which seem more appropriate from your example than a series.&lt;/P&gt;&lt;P&gt;A statement like:&lt;/P&gt;&lt;P&gt;Refline 90 / axis=y Label='Minimum Goal' labelloc=outside;&lt;/P&gt;&lt;P&gt;places a line across the graph at a value of 90 and places a label outside the graph with the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2015 21:53:10 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-09-22T21:53:10Z</dc:date>
    <item>
      <title>Multiple Series and Multiple Reference Lines on Bar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226814#M8216</link>
      <description>&lt;P&gt;I am relatively inexperienced when it comes to SAS procedures related to graphs. &amp;nbsp;I would like to know what SAS procedure, if any, I can use to produce a graph in the format attached. &amp;nbsp;It contains two series graphed vertically as bars and three reference lines. &amp;nbsp;I have used proc gbarline for other graphs that contain only one vertical series and&amp;nbsp;have two reference lines. &amp;nbsp;However, I am having difficulty getting that to work with the two series I need to graph. &amp;nbsp;Also, any help with the SAS code is greatly appreciated. &amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 21:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226814#M8216</guid>
      <dc:creator>KelseyB</dc:creator>
      <dc:date>2015-09-22T21:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Series and Multiple Reference Lines on Bar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226818#M8217</link>
      <description>&lt;P&gt;Instead of plotting two separate series it may be better to create a group variable to define which value is associated with the series.&lt;/P&gt;&lt;P&gt;With SGPLOT you would have a VBAR statement using that group variable. One example is here: &lt;A href="http://support.sas.com/kb/43/731.html" target="_blank"&gt;http://support.sas.com/kb/43/731.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also you can add one or more REFLINE statements, which seem more appropriate from your example than a series.&lt;/P&gt;&lt;P&gt;A statement like:&lt;/P&gt;&lt;P&gt;Refline 90 / axis=y Label='Minimum Goal' labelloc=outside;&lt;/P&gt;&lt;P&gt;places a line across the graph at a value of 90 and places a label outside the graph with the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 21:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226818#M8217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-22T21:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Series and Multiple Reference Lines on Bar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226829#M8218</link>
      <description>&lt;P&gt;Another way to make the same program work with multiple reference lines is to&amp;nbsp;add the reference values to a column ( say A) in your data. &amp;nbsp;Then, you can use the column in thr REFLINE stmt: &amp;nbsp;refline a; &amp;nbsp;This works well if you have a panel, and want different reference lines by the panel variable (SGPANEL).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 00:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226829#M8218</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-09-23T00:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Series and Multiple Reference Lines on Bar Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226897#M8220</link>
      <description>&lt;P&gt;Thank you Sanjay. &amp;nbsp;This was helpful!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-Series-and-Multiple-Reference-Lines-on-Bar-Graph/m-p/226897#M8220</guid>
      <dc:creator>KelseyB</dc:creator>
      <dc:date>2015-09-23T13:26:02Z</dc:date>
    </item>
  </channel>
</rss>

