<?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: Can SGPANEL plot grouped VBOX and have a colaxis showing tic marks? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831271#M23119</link>
    <description>&lt;P&gt;After adding the CATEGORY option, you might also want to add the NOAUTOLEGEND option to the SGPANEL procedure statement. That way, the legend is suppressed. It does not add anything to the graph once you display the tick marks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=plotdata noautolegend;
  panelby group;
  vbox metric / group = subgroup category = subgroup;
  colaxis label='Subgroup' grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Aug 2022 14:41:37 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2022-08-31T14:41:37Z</dc:date>
    <item>
      <title>Can SGPANEL plot grouped VBOX and have a colaxis showing tic marks?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831259#M23117</link>
      <description>&lt;P&gt;Consider this sample&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plotdata(keep=group id subgroup metric);
  do group = 'A', 'B';
    do subgroup = 2, 4, 6, 8;
      do _n_ = 1 to 15;
        id = (group='B') * 100 + _n_;
        metric = rand('integer', 25, 50);
        output;
      end;      
    end;
  end;
run;

proc sgpanel data=plotdata;
  panelby group;
  vbox metric / group = subgroup;
  colaxis label='Subgroup' grid;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1661954595022.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74904iD366024E1A475C91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1661954595022.png" alt="RichardADeVenezia_0-1661954595022.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What is wanted is a plot showing the same boxes, but each group panel showing a colaxis with the subgroup values (2,4,6,8) as tic marks and the boxes above the marks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would turn off the legend with SGPANEL option NOAUTOLEGEND&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 14:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831259#M23117</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2022-08-31T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can SGPANEL plot grouped VBOX and have a colaxis showing tic marks?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831268#M23118</link>
      <description>&lt;P&gt;Just add CATEGORY=subgroup to your VBOX statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;vbox metric / group = subgroup category = subgroup;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 14:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831268#M23118</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-31T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can SGPANEL plot grouped VBOX and have a colaxis showing tic marks?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831271#M23119</link>
      <description>&lt;P&gt;After adding the CATEGORY option, you might also want to add the NOAUTOLEGEND option to the SGPANEL procedure statement. That way, the legend is suppressed. It does not add anything to the graph once you display the tick marks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=plotdata noautolegend;
  panelby group;
  vbox metric / group = subgroup category = subgroup;
  colaxis label='Subgroup' grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 14:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-SGPANEL-plot-grouped-VBOX-and-have-a-colaxis-showing-tic/m-p/831271#M23119</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-08-31T14:41:37Z</dc:date>
    </item>
  </channel>
</rss>

