<?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: sgpanel - showing group on axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262591#M9451</link>
    <description>thanks - lots of good ideas! I haven't been able to get sgpanel to work, but your solution provided what I needed (I can use "ods layout gridded columns=2" to get where I want to go)</description>
    <pubDate>Fri, 08 Apr 2016 20:35:43 GMT</pubDate>
    <dc:creator>Dave25</dc:creator>
    <dc:date>2016-04-08T20:35:43Z</dc:date>
    <item>
      <title>sgpanel - showing group on axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262244#M9444</link>
      <description>&lt;P&gt;any suggestions on how I can get the group variable on the axis?&lt;/P&gt;
&lt;P&gt;(like was available with gchart, using group = and subgroup &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code - I'd like the year field to show on the column axis (along with the q field)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data a; input q $ year id $ pct;&lt;BR /&gt;cards;&lt;BR /&gt;4yr 2013 d 0.44&lt;BR /&gt;2yr 2013 d 0.43&lt;BR /&gt;4yr 2014 d 0.29&lt;BR /&gt;2yr 2014 d 0.63&lt;BR /&gt;4yr 2013 i 0.58&lt;BR /&gt;2yr 2013 i 0.31&lt;BR /&gt;4yr 2014 i 0.54&lt;BR /&gt;2yr 2014 i 0.34&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc sgpanel data=a noautolegend; &lt;BR /&gt;panelby id/columns=2 rows=1;&lt;BR /&gt;hbar q / response=pct group =year GROUPDISPLAY=CLUSTER; &lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 00:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262244#M9444</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-08T00:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262259#M9446</link>
      <description>&lt;P&gt;Since you have&amp;nbsp;explicitly turned off the AUTOLEGEND, you can overlay the group&amp;nbsp;value on the bar. &amp;nbsp;If you have SAS 9.4, you can use the TEXT plot. &amp;nbsp;Else, you can use the SCATTER with MARKERCHAR. &amp;nbsp;But to overlay on a bar, you have to use HBARPARM, which is OK since you are not expecting the bar char to summarize data. &amp;nbsp;If you do, you will have to presummarize your data using PROC MEANS, then use HBARPARM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note addition of the variable XLBL=0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a; &lt;BR /&gt;input q $ year id $ pct;&lt;BR /&gt;&lt;STRONG&gt;xlbl=0;&lt;/STRONG&gt;&lt;BR /&gt;cards;&lt;BR /&gt;4yr 2013 d 0.44&lt;BR /&gt;2yr 2013 d 0.43&lt;BR /&gt;4yr 2014 d 0.29&lt;BR /&gt;2yr 2014 d 0.63&lt;BR /&gt;4yr 2013 i 0.58&lt;BR /&gt;2yr 2013 i 0.31&lt;BR /&gt;4yr 2014 i 0.54&lt;BR /&gt;2yr 2014 i 0.34&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=a noautolegend; &lt;BR /&gt;panelby id/columns=2 rows=1;&lt;BR /&gt;hbarparm category=q response=pct / group =year GROUPDISPLAY=CLUSTER; &lt;BR /&gt;text x=xlbl y=q text=year / group=year groupdisplay=cluster position=right textattrs=(color=black);&lt;/P&gt;
&lt;P&gt;colaxis offsetmin=0;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can creatively put the value anywhere, even rotate it vertically at the base of the bar.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2664iBF049DCF42F6CB5F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="GroupLabel.png" title="GroupLabel.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 01:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262259#M9446</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-04-08T01:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262448#M9448</link>
      <description>Thanks! - any way I can get the year value on the left side of the axis line? (tried a number of options, with no luck)</description>
      <pubDate>Fri, 08 Apr 2016 14:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262448#M9448</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-08T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262580#M9450</link>
      <description>&lt;P&gt;Here are some additional ideas. &amp;nbsp;Should work with SGPANEL, but did nto verify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/04/08/displaying-group-values-on-axis/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2016/04/08/displaying-group-values-on-axis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 19:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262580#M9450</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-04-08T19:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262591#M9451</link>
      <description>thanks - lots of good ideas! I haven't been able to get sgpanel to work, but your solution provided what I needed (I can use "ods layout gridded columns=2" to get where I want to go)</description>
      <pubDate>Fri, 08 Apr 2016 20:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis/m-p/262591#M9451</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-08T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

