<?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: Boxplot color in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37133#M9422</link>
    <description>In fact, there are 2 different ways to draw boxplots in SAS : 1) in a GPLOT procedure, with SYMBOL INTERPOL=BOX (this is the "old" way) ; 2) in a BOXPLOT procedure, where SYMBOL rules over a lot less options on the graph (the Boxplot proc was introduced in sas 8.0, if I remember well).&lt;BR /&gt;
So if you run a Boxplot proc without any Symbol statement, the mean is showed as a black plus (+) sign (= the default). If you want to connect these means, you don't use SYMBOL INTERPOL=JOIN, but an option in the Boxplot proc.</description>
    <pubDate>Fri, 08 Aug 2008 16:04:21 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2008-08-08T16:04:21Z</dc:date>
    <item>
      <title>Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37128#M9417</link>
      <description>I have looked at multiple codes for my boxplot syntax yet no matter what I do the box and error bars are red. I would like them black. This is my code:&lt;BR /&gt;
&lt;BR /&gt;
goptions reset = all;&lt;BR /&gt;
goptions ftext='swiss' htext=12pt xpixels=1800 ypixels=1500;&lt;BR /&gt;
symbol interpol=box10 cv=black co=blue bwidth=2 v=dot width=1 height=1;&lt;BR /&gt;
axis1 major=(n=2 H=1) label=(h=30pt 'Gender')  width=2;&lt;BR /&gt;
axis3 label=(h=30pt "AGE")major=(H=2) minor=(number=2 H=1) width=2;&lt;BR /&gt;
axis4 label=(h=30pt "BMI") major=(H=2) minor=(number=2 H=1) width=2 ;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort data= box;&lt;BR /&gt;
by gender;&lt;BR /&gt;
run;&lt;BR /&gt;
proc boxplot data= box;&lt;BR /&gt;
title height=36pt 'Boxplot of Age by Gender';&lt;BR /&gt;
footnote height=28pt 'Box-25th to 75th&lt;BR /&gt;
  Error Bars-10th to 90th';&lt;BR /&gt;
plot age*gender/ &lt;BR /&gt;
	boxstyle=schematic&lt;BR /&gt;
	boxwidth=10&lt;BR /&gt;
	idsymbol = dot&lt;BR /&gt;
	haxis=axis1 &lt;BR /&gt;
	vaxis=axis3;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Any help on why I can't get black boxes?&lt;BR /&gt;
Thanks!</description>
      <pubDate>Thu, 07 Aug 2008 15:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37128#M9417</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-07T15:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37129#M9418</link>
      <description>Hi.&lt;BR /&gt;
In the Boxplot procedure, the SYMBOL statement has very little control over the mean representation, and none over the boxes themselves. When you specify INTERPOL=BOX10 -- it is simply ignored. Only the V and colors options are considered for drawing the boxplot. You can change the boxplots color with the CBOXES option in the PLOT statement.&lt;BR /&gt;
[pre]&lt;BR /&gt;
plot age*gender/ &lt;BR /&gt;
boxstyle=schematic&lt;BR /&gt;
boxwidth=10&lt;BR /&gt;
idsymbol = dot&lt;BR /&gt;
&lt;B&gt;CBOXES=BLACK&lt;/B&gt;&lt;BR /&gt;
haxis=axis1 &lt;BR /&gt;
vaxis=axis3;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 08 Aug 2008 08:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37129#M9418</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-08T08:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37130#M9419</link>
      <description>thanks! About what you were saying about the symbol statement does that mean that my Interpol=BOX10 is being ignored too?</description>
      <pubDate>Fri, 08 Aug 2008 12:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37130#M9419</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-08T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37131#M9420</link>
      <description>The SYMBOL statement has only effect on the point that represent the means. So you can change the symbol itself (V=), its color (C=), but cannot connect them, for example, with I=JOIN. That was what I meant in my post. If you delete the I=BOX10 in your program, I think that your boxplots are generated just the same, aren't they ?</description>
      <pubDate>Fri, 08 Aug 2008 14:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37131#M9420</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-08T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37132#M9421</link>
      <description>I retried it and your right whether i had the interpol in there or not or even as a different value the graphs were the same. I find that unusual since all of the examples I've seen online are like that too yet supposedly they worked and even in the SAS/graph manual it says to add that in the symbol statement. So I am assuming that this needs to be specified in the same area I just added cboxes, but what termination can I use? I tried both i= and interpol= and neither seem to work. Thank you for all of your help.</description>
      <pubDate>Fri, 08 Aug 2008 15:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37132#M9421</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-08T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot color</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37133#M9422</link>
      <description>In fact, there are 2 different ways to draw boxplots in SAS : 1) in a GPLOT procedure, with SYMBOL INTERPOL=BOX (this is the "old" way) ; 2) in a BOXPLOT procedure, where SYMBOL rules over a lot less options on the graph (the Boxplot proc was introduced in sas 8.0, if I remember well).&lt;BR /&gt;
So if you run a Boxplot proc without any Symbol statement, the mean is showed as a black plus (+) sign (= the default). If you want to connect these means, you don't use SYMBOL INTERPOL=JOIN, but an option in the Boxplot proc.</description>
      <pubDate>Fri, 08 Aug 2008 16:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Boxplot-color/m-p/37133#M9422</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-08T16:04:21Z</dc:date>
    </item>
  </channel>
</rss>

