<?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 and vbar proportion/width in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860131#M23525</link>
    <description>Try "PROPORTIONAL" option:&lt;BR /&gt;panelby year/layout=columnlattice onepanel spacing=0 noborder&lt;BR /&gt; colheaderpos=bottom  novarname uniscale=row PROPORTIONAL ;</description>
    <pubDate>Wed, 22 Feb 2023 11:48:30 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-02-22T11:48:30Z</dc:date>
    <item>
      <title>sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860049#M23524</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm attempting to create a graph to demonstrate variation in medication use by hospitals and region. I think I've gotten close to what I'm after, but I'm running into some struggles while trying to fine tune the figure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=hospitalgraph;
	panelby region / novarname onepanel noborder layout=columnlattice  uniscale=column ;

	vbar ID / response=all_opioid_Mean stat=mean categoryorder=RESPASC barwidth= 0.6 groupdisplay=cluster ;  
	vbar ID / response=methadone_mean stat=mean barwidth= 0.4 groupdisplay=cluster ; 

	rowaxis label="Proportion" discreteorder=data  ;
	colaxis  valueattrs=(size=7) VALUESROTATE=VERTICAL label ='Hospital Number'; 

	format region REGION_.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fig.png" style="width: 768px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80689iC51613FF9C536964/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig.png" alt="fig.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, what are some tips/tricks for:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Making the width/space between bars the same for each of the 4 panels?&lt;/LI&gt;
&lt;LI&gt;How to force the bar width to be the same each panel, right now it seems to be auto scaling based on the available space&lt;/LI&gt;
&lt;LI&gt;I was also struggling with indicating the hospital number horizontally, my work around was to request vertical x-axis IDs however for the hospitals in the Northeast region they're still horizontal, is there a better way to instead of the valuesrotate option?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SO&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 23:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860049#M23524</guid>
      <dc:creator>Shad</dc:creator>
      <dc:date>2023-02-21T23:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860131#M23525</link>
      <description>Try "PROPORTIONAL" option:&lt;BR /&gt;panelby year/layout=columnlattice onepanel spacing=0 noborder&lt;BR /&gt; colheaderpos=bottom  novarname uniscale=row PROPORTIONAL ;</description>
      <pubDate>Wed, 22 Feb 2023 11:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860131#M23525</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-22T11:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860159#M23526</link>
      <description>&lt;P&gt;In addition to adding the PROPORTIONAL option mentioned by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;, add FITPOLICY=ROTATEALWAYS to the COLAXIS. This forces the axis tick values to rotate, even if there is no collision.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 13:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860159#M23526</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-02-22T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860210#M23527</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;. Appreciate the help, that did the trick perfectly.</description>
      <pubDate>Wed, 22 Feb 2023 15:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860210#M23527</guid>
      <dc:creator>Shad</dc:creator>
      <dc:date>2023-02-22T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860211#M23528</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;, interestingly when I added the PROPORTIONAL option it forced the axis tick values to be 90 degrees, but I will keep this little tidbit in my back pocket if/when I need it.</description>
      <pubDate>Wed, 22 Feb 2023 15:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860211#M23528</guid>
      <dc:creator>Shad</dc:creator>
      <dc:date>2023-02-22T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel and vbar proportion/width</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860230#M23529</link>
      <description>&lt;P&gt;When you used the PROPORTIONAL option, the spacing for the second cell must have compressed in a way that there were collisions on that axis as well, causing the ROTATE fit policy to be applied there as well.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 17:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-and-vbar-proportion-width/m-p/860230#M23529</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-02-22T17:20:10Z</dc:date>
    </item>
  </channel>
</rss>

