<?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: Multiple horizontal bar charts in one SAS graph in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320270#M70505</link>
    <description>&lt;P&gt;SGPANEL is what you want to do here, I think. &amp;nbsp;You can do this easily with a first transpose&amp;nbsp;to get your US/ROW/both into a variable, then PANELBY that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Play with the options some to get headers/etc. exactly what you want them to be. &amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0wqazuv6959fnn1fask7mi68lla.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0wqazuv6959fnn1fask7mi68lla.htm&lt;/A&gt; for starters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input firm_size_num_employees	 $  US_plus_ROW	     ROW_only  US_Only;
datalines;
0	                    -28.1	       45.2	  11.0
1-9	                    19.4	      -10.6	 -39.0
10-49	                    65.4	      -27.4	 -18.8
50-99	                    -26.5	       19.3	 -19.3
100-249	                    18.9	      -44.2	 18.5
250-499	                   15.8	               62.9	 35.0
500+	                   17.9	              67.2	 10.1
;;;;
run;

proc transpose data=have out=have_t;
  var _numeric_;
  by firm_Size_num_employees notsorted;
run;



proc sgpanel data=have_t;
  label _name_ =" ";
  panelby _name_/columns=3 nowall noborder sort=data;
  hbarparm category=firm_Size_num_employees response=col1/ group=_name_;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Dec 2016 15:18:13 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2016-12-20T15:18:13Z</dc:date>
    <item>
      <title>Multiple horizontal bar charts in one SAS graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320258#M70498</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a SAS graph where I have 3 horizontal bar charts that use the same vertical axis (firm size by employee count) representing 3 groups&amp;nbsp;(here I am looking at exports growth from&amp;nbsp;Canada by firm size for three trade lanes: (1) to the US and rest-of-world, (2) to the US only and (3) to the ROW only as compiled from Statistics Canada data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;firm_size_num_employees	   US_plus_ROW	     ROW_only  US_Only
0	                    -28.1	       45.2	  11.0
1-9	                    19.4	      -10.6	 -39.0
10-49	                    65.4	      -27.4	 -18.8
50-99	                    -26.5	       19.3	 -19.3
100-249	                    18.9	      -44.2	 18.5
250-499	                   15.8	               62.9	 35.0
500+	                   17.9	              67.2	 10.1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I attached the graph I want to create (I drew it by hand since I can't find what a compariable online).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this either using (a) SAS code or (b) in SAS EG via pulldown menus?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13275i5A136E91D424659D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Bar_Chart.jpg" title="Bar_Chart.jpg" /&gt;</description>
      <pubDate>Tue, 20 Dec 2016 15:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320258#M70498</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-12-20T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple horizontal bar charts in one SAS graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320270#M70505</link>
      <description>&lt;P&gt;SGPANEL is what you want to do here, I think. &amp;nbsp;You can do this easily with a first transpose&amp;nbsp;to get your US/ROW/both into a variable, then PANELBY that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Play with the options some to get headers/etc. exactly what you want them to be. &amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0wqazuv6959fnn1fask7mi68lla.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0wqazuv6959fnn1fask7mi68lla.htm&lt;/A&gt; for starters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input firm_size_num_employees	 $  US_plus_ROW	     ROW_only  US_Only;
datalines;
0	                    -28.1	       45.2	  11.0
1-9	                    19.4	      -10.6	 -39.0
10-49	                    65.4	      -27.4	 -18.8
50-99	                    -26.5	       19.3	 -19.3
100-249	                    18.9	      -44.2	 18.5
250-499	                   15.8	               62.9	 35.0
500+	                   17.9	              67.2	 10.1
;;;;
run;

proc transpose data=have out=have_t;
  var _numeric_;
  by firm_Size_num_employees notsorted;
run;



proc sgpanel data=have_t;
  label _name_ =" ";
  panelby _name_/columns=3 nowall noborder sort=data;
  hbarparm category=firm_Size_num_employees response=col1/ group=_name_;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 15:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320270#M70505</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2016-12-20T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple horizontal bar charts in one SAS graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320300#M70519</link>
      <description>&lt;P&gt;Excellent! &amp;nbsp;I some additonal modifications and got the graph as I wanted! &amp;nbsp;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-horizontal-bar-charts-in-one-SAS-graph/m-p/320300#M70519</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-12-20T16:46:42Z</dc:date>
    </item>
  </channel>
</rss>

