<?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: SGplot suppress missing bars in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/577121#M18563</link>
    <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; Works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aroop&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2019 02:03:23 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2019-07-27T02:03:23Z</dc:date>
    <item>
      <title>SGplot suppress missing bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/576944#M18561</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / reset=all;
ods graphics on / width=4in;

proc sgpanel data=sashelp.class;
  panelby sex / noheader noborder skipemptycells;
  vbar age / response=height group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am creating a graph similar to example from the documentation "&lt;SPAN&gt;SAS® 9.4 ODS Graphics: Procedures Guide, Sixth Edition&lt;/SPAN&gt;".&amp;nbsp; I have only added the&amp;nbsp;&lt;CODE class=" language-sas"&gt;skipemptycells option.&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to suppress missing bars (female age 16) , however, the&amp;nbsp;&lt;CODE class=" language-sas"&gt;skipemptycells option does not suppress it.&amp;nbsp; In my own example I am using year and quarter as the panelby and vbar variables respectively.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Would appreciate a solution.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Thanks&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31330iE29BBC3BC6B2FF62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/576944#M18561</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-07-26T15:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot suppress missing bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/576950#M18562</link>
      <description>&lt;P&gt;You will want to add two options to your PANELBY statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. UNISCALE=ROW - this tells SGPANEL to make only the ROW axes uniform, allowing the missing "16" to go away from the first cell on the COLUMN axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. PROPORTIONAL - this option tells SGPANEL to adjust the cell widths so that the bars have the same width, even when there are not the same number of categories in each cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/576950#M18562</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-07-26T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot suppress missing bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/577121#M18563</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; Works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aroop&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 02:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-suppress-missing-bars/m-p/577121#M18563</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-07-27T02:03:23Z</dc:date>
    </item>
  </channel>
</rss>

