<?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: Different categories in each panel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238768#M8667</link>
    <description>&lt;P&gt;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt; I always mix those up! You need &amp;nbsp;UNISCALE=COLUMN !&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2015 19:52:21 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-12-10T19:52:21Z</dc:date>
    <item>
      <title>SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238756#M8664</link>
      <description>&lt;P&gt;I am running the following code to create several horizontal bar charts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgpanel data=mydata&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;panelby&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; by panelvar;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;hbarparm&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;category&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=catvar &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;response&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=size;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;The problem I run into is that each of my panelvar values has differet catvar values. SGPANEL produces horizontal bar charts with bars for every category in the data set in each panel. In each panel, I really just want to see bars for categories that exists for that panelvar value.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to do this with PROC SGPANEL or do I have to use PROC SGPLOT with a BY statement?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 19:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238756#M8664</guid>
      <dc:creator>jglew</dc:creator>
      <dc:date>2015-12-10T19:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238760#M8665</link>
      <description>&lt;P&gt;Try option UNISCALE=ROW in the PANELBY statement.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 19:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238760#M8665</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-10T19:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238767#M8666</link>
      <description>&lt;P&gt;Unfortunately, that doesn't do quite what I'm looking for. Here is a code example that uses sashelp.cars:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgpanel&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=sashelp.cars (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(Make like &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'A%'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;panelby&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; make / &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;columns&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;uniscale&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=row;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;hbarparm&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;category&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=model &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;response&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=MPG_City;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I'd like to make it so only the models for Audi show up in the Audi panel, only the models for Acura in the Acura panel, etc.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 19:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238767#M8666</guid>
      <dc:creator>jglew</dc:creator>
      <dc:date>2015-12-10T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238768#M8667</link>
      <description>&lt;P&gt;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt; I always mix those up! You need &amp;nbsp;UNISCALE=COLUMN !&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 19:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238768#M8667</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-10T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238770#M8668</link>
      <description>&lt;P&gt;Great! That worked. Thanks so much.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 19:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238770#M8668</guid>
      <dc:creator>jglew</dc:creator>
      <dc:date>2015-12-10T19:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL: Different categories in each panel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238778#M8669</link>
      <description>&lt;P&gt;With SAS 9.4, you can use the PROPORTIONAL option to make all bars the same thickness regardless of the number in each cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=sashelp.cars (where=(Make like 'A%'));&lt;BR /&gt;&amp;nbsp; panelby make / columns=1 uniscale=column proportional;&lt;BR /&gt;&amp;nbsp; hbarparm category=model response=MPG_City;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1127i904CFF3F9BE81EB2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="CarsPanel.png" title="CarsPanel.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 20:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-Different-categories-in-each-panel/m-p/238778#M8669</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-12-10T20:19:54Z</dc:date>
    </item>
  </channel>
</rss>

