<?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 SGPanel move axis labels in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-move-axis-labels/m-p/510393#M17347</link>
    <description>&lt;P&gt;I am trying to produce a 2x2 set of bar plots that has either the axis labels both on top and bottom, or in-between the two rows of plots. I am using SGPanel, and can't seem to find a way to move the axis which labels the individual bars anywhere. I would rather not use a colored legend because some of the groups have extremely low counts, and I want them to all be on the same y-scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=freqmed (where=(dx ^=""));
	title "Medications taken at baseline";
	format  tablenum tablenum.;
	panelby dx / novarname ;
	rowaxis label="Baseline totals";
	colaxis grid label=" ";
	vbar Tablenum / response=Frequency group=tablenum dataskin=sheen nostatlabel;
	keylegend "doesn't matter what's here it's invisible!" / title="";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to produce&amp;nbsp; the following figure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPanel60.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24643i5F0AB8AF9B02D5B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPanel60.png" alt="SGPanel60.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but would like to make something more like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24644i5C191A0446DF13A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 Nov 2018 14:15:10 GMT</pubDate>
    <dc:creator>akaranevich</dc:creator>
    <dc:date>2018-11-05T14:15:10Z</dc:date>
    <item>
      <title>SGPanel move axis labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-move-axis-labels/m-p/510393#M17347</link>
      <description>&lt;P&gt;I am trying to produce a 2x2 set of bar plots that has either the axis labels both on top and bottom, or in-between the two rows of plots. I am using SGPanel, and can't seem to find a way to move the axis which labels the individual bars anywhere. I would rather not use a colored legend because some of the groups have extremely low counts, and I want them to all be on the same y-scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=freqmed (where=(dx ^=""));
	title "Medications taken at baseline";
	format  tablenum tablenum.;
	panelby dx / novarname ;
	rowaxis label="Baseline totals";
	colaxis grid label=" ";
	vbar Tablenum / response=Frequency group=tablenum dataskin=sheen nostatlabel;
	keylegend "doesn't matter what's here it's invisible!" / title="";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to produce&amp;nbsp; the following figure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPanel60.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24643i5F0AB8AF9B02D5B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPanel60.png" alt="SGPanel60.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but would like to make something more like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24644i5C191A0446DF13A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-move-axis-labels/m-p/510393#M17347</guid>
      <dc:creator>akaranevich</dc:creator>
      <dc:date>2018-11-05T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel move axis labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-move-axis-labels/m-p/510470#M17348</link>
      <description>&lt;P&gt;I think this would be possible by&lt;/P&gt;
&lt;P&gt;1) suppressing the actual tick labels of the xaxis and&lt;/P&gt;
&lt;P&gt;2) adding y values to your data with&amp;nbsp;&amp;nbsp;the text you want to display near the&amp;nbsp;top of the panel&amp;nbsp;using a text plot for the groups displayed in the bottom two panels (DX = Other and PLS).&lt;/P&gt;
&lt;P&gt;You would likely get to experiment with the ROTATE option to get best appearance&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-move-axis-labels/m-p/510470#M17348</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-05T16:01:28Z</dc:date>
    </item>
  </channel>
</rss>

