<?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: Chart with multiple columns for two groups within multiple groups in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478363#M16512</link>
    <description>&lt;P&gt;From your code it would seem you may have the response values computed in your data set as separate columns.&amp;nbsp; You can use other plot types to overlay the other columns.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 14:03:01 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2018-07-16T14:03:01Z</dc:date>
    <item>
      <title>Chart with multiple columns for two groups within multiple groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478350#M16510</link>
      <description>&lt;P&gt;I'm trying to get the min, median, and max for populations for 8 states classified by two methods. The code I tried only seems to allow me to add one of those (e.g., median) for visualisation. Image attached to show example graph. Is there a way to get min/med/max by state AND by method on a graph? Not sure if there is some kind of panel method that would be better showing min/med/max for each method by state. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgplot data=Graph_test1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vbar State / response=Median group=method groupdisplay=cluster;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yaxis label="Population";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;title 'Test';&lt;BR /&gt;run;&lt;BR /&gt;title;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478350#M16510</guid>
      <dc:creator>wernie</dc:creator>
      <dc:date>2018-07-16T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with multiple columns for two groups within multiple groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478362#M16511</link>
      <description>&lt;P&gt;PROC SGPANEL should give you that extra level of classification you need. Try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=Graph_test1;
   panelby method / columns=1 onepanel;
   vbar State / response=min discreteoffset=-0.3 barwidth=0.3;
   vbar State / response=median barwidth=0.3;
   vbar State / response=max discreteoffset=0.3 barwidth=0.3;
   rowaxis label="Population";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478362#M16511</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-07-16T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with multiple columns for two groups within multiple groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478363#M16512</link>
      <description>&lt;P&gt;From your code it would seem you may have the response values computed in your data set as separate columns.&amp;nbsp; You can use other plot types to overlay the other columns.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478363#M16512</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-07-16T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with multiple columns for two groups within multiple groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478370#M16513</link>
      <description>&lt;P&gt;Thank you! That definitely helps. One additional question - my max is quite high, so it doesn't allow for the variation in min or median to be seen. Is there a way to add a secondary y axis in this code? Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478370#M16513</guid>
      <dc:creator>wernie</dc:creator>
      <dc:date>2018-07-16T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with multiple columns for two groups within multiple groups</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478385#M16515</link>
      <description>&lt;P&gt;In SGPLOT, we support both secondary axes and axis breaks. I would recommend trying the axis breaks, as the visual comparison of the max bars against the other two bars might be confusing with a secondary axis. Here is simple example using axis breaks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.cars;
yaxis ranges=(0-300000 800000-max);
vbar type / response=weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using SGPLOT would mean that you will need to move the METHOD variable to a BY-group:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Graph_test1 uniform=all; /* for uniform axes and groups */
   by method / columns=1 onepanel;
   vbar State / response=min discreteoffset=-0.3 barwidth=0.3;
   vbar State / response=median barwidth=0.3;
   vbar State / response=max discreteoffset=0.3 barwidth=0.3;
   yaxis label="Population"; /* Add your RANGES option here */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 15:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Chart-with-multiple-columns-for-two-groups-within-multiple/m-p/478385#M16515</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-07-16T15:00:36Z</dc:date>
    </item>
  </channel>
</rss>

