<?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: sgplot vbar with table in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363369#M12637</link>
    <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I have attached a test file in excel. The code I have tried is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test_EG;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test_EG;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;stat&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=percent &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;statlabel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;barn.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xaxistable&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;the variable "antalbarn" means how many children do a person have and the values are 0 to 2. And when I do the xaxistable it SUM and&amp;nbsp;when there is&amp;nbsp;4 persons with two children the&amp;nbsp;xacistable respond with 8 (=4*2) where I would like&amp;nbsp;a table that respond&amp;nbsp;with&amp;nbsp;4&amp;nbsp;persons has two children as in the in&amp;nbsp;proc freq table.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I hope that it makes sense?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;/Ane&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 11:23:51 GMT</pubDate>
    <dc:creator>ff7t</dc:creator>
    <dc:date>2017-06-01T11:23:51Z</dc:date>
    <item>
      <title>sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363354#M12634</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am about to make a graph with proc sgplot function and would like to have my table with the freq and percent values from the proc freq table inside the graph. I tried with xaxistable, but that doesn't work. Do any of you have a tip? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="text_exposed_show"&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363354#M12634</guid>
      <dc:creator>ff7t</dc:creator>
      <dc:date>2017-06-01T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363359#M12635</link>
      <description>&lt;P&gt;Sure. Post some sample data and the code you tried and we can show you how to modify it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 10:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363359#M12635</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-06-01T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363360#M12636</link>
      <description>&lt;P&gt;There are various ways you can do this, depends on what you want the output to look like, destination etc. &amp;nbsp;I find my first port of call on any graph related topic is this excellent blog by Sanjay:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thousands of examples of all types. Here is one example with values below the graph:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/04/04/consistent-ordering-graph-components/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/04/04/consistent-ordering-graph-components/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is one showing titles use:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/05/23/ctspedia-clinical-graphs-volcano-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2016/05/23/ctspedia-clinical-graphs-volcano-plot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You could also plot them if you want them in specific areas etc.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 10:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363360#M12636</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-01T10:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363369#M12637</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I have attached a test file in excel. The code I have tried is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test_EG;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=test_EG;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;stat&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=percent &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;statlabel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;barn.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xaxistable&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; antalbarn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;the variable "antalbarn" means how many children do a person have and the values are 0 to 2. And when I do the xaxistable it SUM and&amp;nbsp;when there is&amp;nbsp;4 persons with two children the&amp;nbsp;xacistable respond with 8 (=4*2) where I would like&amp;nbsp;a table that respond&amp;nbsp;with&amp;nbsp;4&amp;nbsp;persons has two children as in the in&amp;nbsp;proc freq table.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I hope that it makes sense?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;/Ane&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 11:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363369#M12637</guid>
      <dc:creator>ff7t</dc:creator>
      <dc:date>2017-06-01T11:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363710#M12638</link>
      <description>&lt;P&gt;Or maybe there is a way to show both the percentage and frequency for each bar?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363710#M12638</guid>
      <dc:creator>ff7t</dc:creator>
      <dc:date>2017-06-02T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363711#M12639</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Or maybe there is a way to show both the percentage and frequency for each bar?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363711#M12639</guid>
      <dc:creator>ff7t</dc:creator>
      <dc:date>2017-06-02T08:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot vbar with table</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363713#M12640</link>
      <description>&lt;P&gt;Yes, as I mention in my post, that blog has examples of all kinds of graphs with code examples. &amp;nbsp;Use the search box on there to find specific things, or just scroll through and see the wonders they have come up with.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-vbar-with-table/m-p/363713#M12640</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-02T08:21:58Z</dc:date>
    </item>
  </channel>
</rss>

