<?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: how to make a bar graph in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/892050#M352379</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;Prefer vbarbasic of proc sgplot over the old vbar. You will have more features, flexibility and you will be able to compute your statistics with proc freq or so before plotting them.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 19:30:41 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2023-08-31T19:30:41Z</dc:date>
    <item>
      <title>how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891880#M352304</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to make a simple bar graph that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1693469823773.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87357iFED976276F299A80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1693469823773.png" alt="HitmonTran_0-1693469823773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sample data:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;order (num)&lt;/TD&gt;&lt;TD&gt;var2 (char)&lt;/TD&gt;&lt;TD&gt;var3 (char)&lt;/TD&gt;&lt;TD&gt;var4 (num)&lt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TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;No Symptoms&lt;/TD&gt;&lt;TD&gt;visit 20&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Symptoms1&lt;/TD&gt;&lt;TD&gt;visit 20&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Symptoms 2&lt;/TD&gt;&lt;TD&gt;visit 20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Aug 2023 08:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891880#M352304</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2023-08-31T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891886#M352307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share what you have tried with any messages from the log. You can use the Insert Code "&amp;lt;/&amp;gt;" icon when posting code or log messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891886#M352307</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2023-08-31T09:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891917#M352318</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
Here is an example
*/
title;
proc sgplot data=sashelp.heart;
vbar bp_status/response=weight group=sex groupdisplay=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1693484371150.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87364i5E965C0F626148F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1693484371150.png" alt="Ksharp_0-1693484371150.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 12:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891917#M352318</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-31T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891955#M352336</link>
      <description>&lt;P&gt;Since the example "data" has nothing that appears in the example picture you have to walk us through the role of each variable and how it is supposed to be used in the graph. Especially what your Var4 represents. You show an example graph where bar height represents percentages. If the value of Var4 is a percentage then 244 is an odd value, not impossible but appears odd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe you have been on this forum long enough to know that example data should be in form of working data step code so we don't have to make guesses about actual variable names and types.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/891955#M352336</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-31T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/892050#M352379</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;Prefer vbarbasic of proc sgplot over the old vbar. You will have more features, flexibility and you will be able to compute your statistics with proc freq or so before plotting them.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 19:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/892050#M352379</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-08-31T19:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a bar graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/894287#M353272</link>
      <description>Thanks Ksharp! you always give me the correct solution on 1st attempt. really appreciate your help!</description>
      <pubDate>Thu, 14 Sep 2023 15:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-a-bar-graph/m-p/894287#M353272</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2023-09-14T15:20:33Z</dc:date>
    </item>
  </channel>
</rss>

