<?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 sgplot in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/sgplot/m-p/758677#M10108</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a sas bargraph that one can then filter on to view specific items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose the x-axis is the individual number of passes and the y-axis is the count. Then:&lt;/P&gt;&lt;P&gt;Proc Sgplot Data = Inputs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Vbar&amp;nbsp; = individual_ID;&lt;/P&gt;&lt;P&gt;Run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should give me that noting that the individual might say play tennis, rugby, soccer and chess then I can add a Group = sport to get a single bar for an individual with stacks on it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But say I want to filter on just rugby and still track the individual number in the x-axis.&lt;/P&gt;&lt;P&gt;Then finally, what if I want to filter on just on individual number to view more detail into them only across the various sports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly assist on the latter components&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Aug 2021 22:05:32 GMT</pubDate>
    <dc:creator>Kamohelo_A</dc:creator>
    <dc:date>2021-08-01T22:05:32Z</dc:date>
    <item>
      <title>sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sgplot/m-p/758677#M10108</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a sas bargraph that one can then filter on to view specific items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose the x-axis is the individual number of passes and the y-axis is the count. Then:&lt;/P&gt;&lt;P&gt;Proc Sgplot Data = Inputs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Vbar&amp;nbsp; = individual_ID;&lt;/P&gt;&lt;P&gt;Run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should give me that noting that the individual might say play tennis, rugby, soccer and chess then I can add a Group = sport to get a single bar for an individual with stacks on it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But say I want to filter on just rugby and still track the individual number in the x-axis.&lt;/P&gt;&lt;P&gt;Then finally, what if I want to filter on just on individual number to view more detail into them only across the various sports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly assist on the latter components&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 22:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sgplot/m-p/758677#M10108</guid>
      <dc:creator>Kamohelo_A</dc:creator>
      <dc:date>2021-08-01T22:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sgplot/m-p/758741#M10117</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389283"&gt;@Kamohelo_A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a sas bargraph that one can then filter on to view specific items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose the x-axis is the individual number of passes and the y-axis is the count. Then:&lt;/P&gt;
&lt;P&gt;Proc Sgplot Data = Inputs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Vbar&amp;nbsp; = individual_ID;&lt;/P&gt;
&lt;P&gt;Run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should give me that noting that the individual might say play tennis, rugby, soccer and chess then I can add a Group = sport to get a single bar for an individual with stacks on it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is no equal sign after the VBAR in the VBAR statement. The option GROUP= will add in the sports that the person plays. Is there some reason why you need to ask? You can just run the code and see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;But say I want to filter on just rugby and still track the individual number in the x-axis.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Add this command into PROC SGPLOT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where sport='Rugby';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Then finally, what if I want to filter on just on individual number to view more detail into them only across the various sports.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Similar solution&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where individual_id=7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Bar charts seem to be a poor choice for displaying this information. A frequency table makes more sense to me (PROC FREQ)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 10:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sgplot/m-p/758741#M10117</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-02T10:49:05Z</dc:date>
    </item>
  </channel>
</rss>

