<?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: Annotating box plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33325#M1072</link>
    <description>If you can't find another way, perhaps this example will be a good starting-place for creating a totally custom boxplot, using annotate to draw it ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.sas" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.sas&lt;/A&gt;

Message was edited by: Robert Allison @ SAS</description>
    <pubDate>Fri, 18 Mar 2011 18:23:13 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2011-03-18T18:23:13Z</dc:date>
    <item>
      <title>Annotating box plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33324#M1071</link>
      <description>Hello.&lt;BR /&gt;
I am using Proc Boxplot to make a grouped box and whisker plot.  I am using annotate to draw brackets between boxes indicating statistically significant pair-wise differences. &lt;BR /&gt;
&lt;BR /&gt;
How do I get &lt;U&gt;three different color fills&lt;/U&gt; inside each of the three locations (Neck, Chest, Groin) and how do I then create a &lt;U&gt;legend&lt;/U&gt; outside of the plot area that will include the color definition as well as the p-value labels that I currently have showing inside the plot area?&lt;BR /&gt;
&lt;BR /&gt;
By the way, I would love to do this using Proc SGPanel.  Does anyone know if SGPanel can be "tricked" into somehow adding brackets to a grouped boxplot?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Norma Ketchum&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
goptions reset=goptions  fill&lt;BR /&gt;
device=PNG target=PNG Xmax=8 in Ymax=5 in &lt;BR /&gt;
Ftext='arial' Ftitle='arial' gunit=pct &lt;BR /&gt;
XPIXELS=4000 YPIXELS=4000 Htext=3.5 Htitle=3 ;&lt;BR /&gt;
&lt;BR /&gt;
%annomac &lt;BR /&gt;
data anno1;&lt;BR /&gt;
length function style color $ 8 text $23;&lt;BR /&gt;
  retain hsys '3' xsys '3' ysys '3'; &lt;BR /&gt;
  size=3; color='black'; function='label';&lt;BR /&gt;
  when='A';&lt;BR /&gt;
  &lt;BR /&gt;
  %line(14.0,  75.0,  66.0,    75.0,     red, 1,.1);            &lt;BR /&gt;
  %line(14.0,  75.0,  14.0,    60.0,       red, 1,.1);&lt;BR /&gt;
  %line(66.0,  75.0,  66.0,    74.0,     red, 1,.1);&lt;BR /&gt;
  %LABEL (92.0,  84.0, "p&amp;lt;0.01", red, 0, 0, 3.00, arial, E);  &lt;BR /&gt;
&lt;BR /&gt;
  %line(24.0,  73.0,  64.0,    73.0,     blue, 1,.1);&lt;BR /&gt;
  %line(24.0,  73.0,  24.0,    65.0,       blue, 1,.1);&lt;BR /&gt;
  %line(64.0,  73.0,  64.0,    72.0,     blue, 1,.1);&lt;BR /&gt;
  %LABEL (92.0,  80.0, "p&amp;lt;0.05", blue, 0, 0, 3.0, arial, E); &lt;BR /&gt;
      run;&lt;BR /&gt;
&lt;BR /&gt;
proc boxplot data=dose_final;&lt;BR /&gt;
plot dose*group_loc \  boxwidth=8 cboxes=black cboxfill=lig CONTINUOUS&lt;BR /&gt;
 BOXSTYLE=schematic annotate=anno1 &lt;BR /&gt;
haxis=axis1 vaxis=axis2;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 18 Mar 2011 17:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33324#M1071</guid>
      <dc:creator>ketch</dc:creator>
      <dc:date>2011-03-18T17:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Annotating box plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33325#M1072</link>
      <description>If you can't find another way, perhaps this example will be a good starting-place for creating a totally custom boxplot, using annotate to draw it ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.sas" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.sas&lt;/A&gt;

Message was edited by: Robert Allison @ SAS</description>
      <pubDate>Fri, 18 Mar 2011 18:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33325#M1072</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-03-18T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Annotating box plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33326#M1073</link>
      <description>Public links available at:&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.sas" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.sas&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 21 Mar 2011 13:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotating-box-plots/m-p/33326#M1073</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-21T13:20:51Z</dc:date>
    </item>
  </channel>
</rss>

