<?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 proc sgploy vbar in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sgploy-vbar/m-p/715144#M220870</link>
    <description>&lt;PRE&gt;title "Gender Distribution of Company A";
proc sgplot data = baseline;
vbar Sex__Male_1_ /response=percent  datalabel ;
format Sex__Male_1_ sex.;
run;&lt;/PRE&gt;&lt;P&gt;response = percent not working the log shows:&lt;/P&gt;&lt;PRE&gt;35  ods trace on;
136  title "Gender Distribution of Company A";
137  proc sgplot data = baseline;
138  vbar Sex__Male_1_ /response=percent  datalabel ;
ERROR: Variable PERCENT not found.
139  format Sex__Male_1_ sex.;
140  run;&lt;/PRE&gt;&lt;P&gt;Need help to transform the yaxis into percent format&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 22:38:07 GMT</pubDate>
    <dc:creator>gx2144</dc:creator>
    <dc:date>2021-01-28T22:38:07Z</dc:date>
    <item>
      <title>proc sgploy vbar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sgploy-vbar/m-p/715144#M220870</link>
      <description>&lt;PRE&gt;title "Gender Distribution of Company A";
proc sgplot data = baseline;
vbar Sex__Male_1_ /response=percent  datalabel ;
format Sex__Male_1_ sex.;
run;&lt;/PRE&gt;&lt;P&gt;response = percent not working the log shows:&lt;/P&gt;&lt;PRE&gt;35  ods trace on;
136  title "Gender Distribution of Company A";
137  proc sgplot data = baseline;
138  vbar Sex__Male_1_ /response=percent  datalabel ;
ERROR: Variable PERCENT not found.
139  format Sex__Male_1_ sex.;
140  run;&lt;/PRE&gt;&lt;P&gt;Need help to transform the yaxis into percent format&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 22:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sgploy-vbar/m-p/715144#M220870</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2021-01-28T22:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgploy vbar</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sgploy-vbar/m-p/715147#M220873</link>
      <description>&lt;P&gt;RESPONSE= requires a variable in the data set.&lt;/P&gt;
&lt;P&gt;STAT=percent specifies the statistic used for the Yaxis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps you are looking for something like:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   vbar age / stat=percent;
run;&lt;/PRE&gt;
&lt;P&gt;where each bar at the Age value represents the percentage of the number of records?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 22:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sgploy-vbar/m-p/715147#M220873</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-28T22:44:31Z</dc:date>
    </item>
  </channel>
</rss>

