<?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: Adding Summary Statistics to VBOX SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Summary-Statistics-to-VBOX-SGPANEL/m-p/483614#M16679</link>
    <description>&lt;P&gt;To get all of this into&amp;nbsp;a single graph probably the easiest is to modify your data so that you have your existing data plus a duplicate that has a _node_ value to indicate the "whole data".&lt;/P&gt;
&lt;P&gt;That code would look something like:&lt;/P&gt;
&lt;PRE&gt;data tree.vboxplot;
   set tree.mpgout 
       tree.mpgout(in=in2)
   ;
   if in2 then _node_='Total';
run;&lt;/PRE&gt;
&lt;P&gt;You have no indication whether _node_ is numeric or character so I can't provide anything guaranteed to work but that should give you an idea. If you want the whole data on the left set a node value smaller or earlier in the sort order, on the right set a value larger or after the others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plot code would then use the new set and drop the second vbox statement:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data = tree.vboxplot;
 vbox mpg /group = _node_;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 15:59:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-03T15:59:56Z</dc:date>
    <item>
      <title>Adding Summary Statistics to VBOX SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Summary-Statistics-to-VBOX-SGPANEL/m-p/483607#M16678</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS 9.4 TS 1M4 on Windows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set that contains variables _NODE_ and mpg, e.g&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs MPG _Node_ _Leaf_ P_MPG1234 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;18.0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;14.0119&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;14.0119&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18.0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;14.0119&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16.0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;14.0119&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to make a box plot by node but add a box for all the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = tree.mpgout;
 vbox mpg /group = _node_;
 vbox mpg/boxwidth= 0.1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but this put the second box in the middle, blotting out other boxes.&amp;nbsp; I didn't see a way to set the location of the boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make this plot? THanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 22:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Summary-Statistics-to-VBOX-SGPANEL/m-p/483607#M16678</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2018-08-02T22:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Summary Statistics to VBOX SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Summary-Statistics-to-VBOX-SGPANEL/m-p/483614#M16679</link>
      <description>&lt;P&gt;To get all of this into&amp;nbsp;a single graph probably the easiest is to modify your data so that you have your existing data plus a duplicate that has a _node_ value to indicate the "whole data".&lt;/P&gt;
&lt;P&gt;That code would look something like:&lt;/P&gt;
&lt;PRE&gt;data tree.vboxplot;
   set tree.mpgout 
       tree.mpgout(in=in2)
   ;
   if in2 then _node_='Total';
run;&lt;/PRE&gt;
&lt;P&gt;You have no indication whether _node_ is numeric or character so I can't provide anything guaranteed to work but that should give you an idea. If you want the whole data on the left set a node value smaller or earlier in the sort order, on the right set a value larger or after the others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plot code would then use the new set and drop the second vbox statement:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data = tree.vboxplot;
 vbox mpg /group = _node_;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Summary-Statistics-to-VBOX-SGPANEL/m-p/483614#M16679</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-03T15:59:56Z</dc:date>
    </item>
  </channel>
</rss>

