<?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: Proc Sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665363#M20143</link>
    <description>&lt;P&gt;Hi Jag....Thanks for your response. It works but not too sure why the "BY" is highlighted in red in the code....I was expecting it to be in blue. How do you suppress the Year from the by statement from appearing in the graph as I am using #byval(Year) in a Title statement. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 13:54:03 GMT</pubDate>
    <dc:creator>twildone</dc:creator>
    <dc:date>2020-06-26T13:54:03Z</dc:date>
    <item>
      <title>Proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665231#M20141</link>
      <description>&lt;P&gt;Hi....I am trying to produce graphs for each year using proc sgplot. I tried to used the By statement but that doesn't seem to work. Any suggestion how it can be done. Also, does proc sgplot allow to plot a line on the second y axis? Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
vbarparm category=Geo response=University / discreteoffset=-0.17 barwidth=0.3;
vbarparm category=Geo response=College / discreteoffset=0.17 barwidth=0.3;
yaxis valuesdisplay=(0 to 100 by 10) label="Percentage (%) " labelattrs=(size=13 );
xaxis label="Department"  labelattrs=(size=13)  fitpolicy=rotatethin valuesrotate=vertical;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2020 03:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665231#M20141</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2020-06-26T03:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665237#M20142</link>
      <description>&lt;P&gt;You need to sort the dataset by proc sort and use the by statement in proc sgplot as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by year;
run;

proc sgplot data=have;
by year;
vbarparm category=Geo response=University / discreteoffset=-0.17 barwidth=0.3;
vbarparm category=Geo response=College / discreteoffset=0.17 barwidth=0.3;
yaxis valuesdisplay=(0 to 100 by 10) label="Percentage (%) " labelattrs=(size=13 );
xaxis label="Department"  labelattrs=(size=13)  fitpolicy=rotatethin valuesrotate=vertical;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2020 04:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665237#M20142</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-06-26T04:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665363#M20143</link>
      <description>&lt;P&gt;Hi Jag....Thanks for your response. It works but not too sure why the "BY" is highlighted in red in the code....I was expecting it to be in blue. How do you suppress the Year from the by statement from appearing in the graph as I am using #byval(Year) in a Title statement. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 13:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665363#M20143</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2020-06-26T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665367#M20144</link>
      <description>Using the NOBYLINE system option will cause the BY-line to not be printed. &lt;BR /&gt;&lt;BR /&gt;try using below option and run the graph.&lt;BR /&gt;&lt;BR /&gt;options nobyline;</description>
      <pubDate>Fri, 26 Jun 2020 14:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665367#M20144</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-06-26T14:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665368#M20145</link>
      <description>&lt;P&gt;Hi Jag....that worked perfectly.....one more thing...can the second y axis be used as a line on the graph which will show to the overall percentage. I am trying to compare the departments with bars and would like to have a line to show the overall percentage if that is possible. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 14:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgplot/m-p/665368#M20145</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2020-06-26T14:17:29Z</dc:date>
    </item>
  </channel>
</rss>

