<?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: Proc Boxplot- Center inset group in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/300997#M60574</link>
    <description>&lt;PRE&gt;
Use PROC SGPLOT .



data class;
 set sashelp.class;
run;
proc summary data=class nway;
 class sex;
 var weight;
 output out=temp n=n mean=mean std=std;
run;
data class;
 set class temp;
run;

proc sgplot data=class;
 vbox weight/category=sex;
 xaxistable n mean std/x=sex location=inside position=top;
run;

&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Sep 2016 11:26:12 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-09-27T11:26:12Z</dc:date>
    <item>
      <title>Proc Boxplot- Center inset group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/300758#M60546</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc boxplot in SAS v9.3 to produce side by side boxplots. &amp;nbsp;I am including the inset group statement to include n, mean, std dev, etc in the plot. &amp;nbsp;I have tried various formats and positions, but I cannot get the statistics in the inset to line up over the corresponding box. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;BR /&gt;proc boxplot data=all;&lt;BR /&gt;plot diff*race/ boxwidth=5 skiphlabels=0 vref=3 -3 vreflabels='weight gain' 'weight loss' vreflabpos=3;&lt;BR /&gt;insetgroup n mean stddev q1 q2 q3 / format=bestd4.1 position=topoff cframe=black;&lt;BR /&gt;goptions htext=1.3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the resulting plot:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5056i8451A7513048BB36/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="boxplot.png" title="boxplot.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want the statistics to line up a little more precisely, to make this easier to interpret to those outside the study. &amp;nbsp;Does anyone know if this is possible? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kelsey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/300758#M60546</guid>
      <dc:creator>KelLeo</dc:creator>
      <dc:date>2016-09-26T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Boxplot- Center inset group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/300997#M60574</link>
      <description>&lt;PRE&gt;
Use PROC SGPLOT .



data class;
 set sashelp.class;
run;
proc summary data=class nway;
 class sex;
 var weight;
 output out=temp n=n mean=mean std=std;
run;
data class;
 set class temp;
run;

proc sgplot data=class;
 vbox weight/category=sex;
 xaxistable n mean std/x=sex location=inside position=top;
run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 11:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/300997#M60574</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-27T11:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Boxplot- Center inset group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/301017#M60575</link>
      <description>&lt;P&gt;The xaxistable statement isn't working for me. &amp;nbsp;I believe&amp;nbsp;that is new to SAS 9.4. &amp;nbsp;I'm using 9.3. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 13:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/301017#M60575</guid>
      <dc:creator>KelLeo</dc:creator>
      <dc:date>2016-09-27T13:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Boxplot- Center inset group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/301206#M60584</link>
      <description>&lt;PRE&gt;
You could use other skill .

http://blogs.sas.com/content/graphicallyspeaking/2013/06/24/schematic-plot/

http://blogs.sas.com/content/graphicallyspeaking/2013/09/07/bar-charts-with-stacked-and-cluster-groups/

&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2016 10:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-Center-inset-group/m-p/301206#M60584</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-28T10:41:25Z</dc:date>
    </item>
  </channel>
</rss>

