<?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 Boxplot with different color for each box ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Boxplot-with-different-color-for-each-box/m-p/16557#M405</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to use the cboxfill option with a variable name containing rigth color names within the boxplot procedure but it doesn't want to color them ...&lt;BR /&gt;
&lt;BR /&gt;
Even if I define the "couleur" variable with "RED" everywhere, it's doesn't work too ... But if I replace cboxfill=couleur by cboxfill=red, all plots are logically red.&lt;BR /&gt;
&lt;BR /&gt;
Do you have an idea ?&lt;BR /&gt;
&lt;BR /&gt;
Best wishes,&lt;BR /&gt;
&lt;BR /&gt;
Marc&lt;BR /&gt;
&lt;BR /&gt;
Here is my code :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DATA dessin; SET sites.pc_value_sel;&lt;BR /&gt;
length couleur $8.;&lt;BR /&gt;
Select (km7b);&lt;BR /&gt;
   when (1) couleur="RED";&lt;BR /&gt;
   when (2) couleur="GREEN";&lt;BR /&gt;
   when (3) couleur="BLUE";&lt;BR /&gt;
   when (4) couleur="BLACK";&lt;BR /&gt;
   when (5) couleur="orange";&lt;BR /&gt;
   when (6) couleur="magenta";&lt;BR /&gt;
   when (7) couleur="brown";&lt;BR /&gt;
Otherwise;&lt;BR /&gt;
end;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC SORT DATA=dessin; BY km7b;&lt;BR /&gt;
&lt;BR /&gt;
Proc boxplot data=dessin; &lt;BR /&gt;
    plot (H6210_t) * km7b&lt;BR /&gt;
         / caxis=BLACK &lt;BR /&gt;
         cframe=CXA8A8A8&lt;BR /&gt;
         ctext=BLACK &lt;BR /&gt;
         cboxes=black	&lt;BR /&gt;
        &lt;B&gt; cboxfill=couleur&lt;/B&gt; &lt;BR /&gt;
        idcolor=black &lt;BR /&gt;
         boxstyle=schematicid &lt;BR /&gt;
         WAXIS=1&lt;BR /&gt;
         haxis=axis1; &lt;BR /&gt;
run;</description>
    <pubDate>Wed, 08 Apr 2009 15:18:00 GMT</pubDate>
    <dc:creator>Robert_des_Bois</dc:creator>
    <dc:date>2009-04-08T15:18:00Z</dc:date>
    <item>
      <title>Boxplot with different color for each box ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Boxplot-with-different-color-for-each-box/m-p/16557#M405</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to use the cboxfill option with a variable name containing rigth color names within the boxplot procedure but it doesn't want to color them ...&lt;BR /&gt;
&lt;BR /&gt;
Even if I define the "couleur" variable with "RED" everywhere, it's doesn't work too ... But if I replace cboxfill=couleur by cboxfill=red, all plots are logically red.&lt;BR /&gt;
&lt;BR /&gt;
Do you have an idea ?&lt;BR /&gt;
&lt;BR /&gt;
Best wishes,&lt;BR /&gt;
&lt;BR /&gt;
Marc&lt;BR /&gt;
&lt;BR /&gt;
Here is my code :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DATA dessin; SET sites.pc_value_sel;&lt;BR /&gt;
length couleur $8.;&lt;BR /&gt;
Select (km7b);&lt;BR /&gt;
   when (1) couleur="RED";&lt;BR /&gt;
   when (2) couleur="GREEN";&lt;BR /&gt;
   when (3) couleur="BLUE";&lt;BR /&gt;
   when (4) couleur="BLACK";&lt;BR /&gt;
   when (5) couleur="orange";&lt;BR /&gt;
   when (6) couleur="magenta";&lt;BR /&gt;
   when (7) couleur="brown";&lt;BR /&gt;
Otherwise;&lt;BR /&gt;
end;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC SORT DATA=dessin; BY km7b;&lt;BR /&gt;
&lt;BR /&gt;
Proc boxplot data=dessin; &lt;BR /&gt;
    plot (H6210_t) * km7b&lt;BR /&gt;
         / caxis=BLACK &lt;BR /&gt;
         cframe=CXA8A8A8&lt;BR /&gt;
         ctext=BLACK &lt;BR /&gt;
         cboxes=black	&lt;BR /&gt;
        &lt;B&gt; cboxfill=couleur&lt;/B&gt; &lt;BR /&gt;
        idcolor=black &lt;BR /&gt;
         boxstyle=schematicid &lt;BR /&gt;
         WAXIS=1&lt;BR /&gt;
         haxis=axis1; &lt;BR /&gt;
run;</description>
      <pubDate>Wed, 08 Apr 2009 15:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Boxplot-with-different-color-for-each-box/m-p/16557#M405</guid>
      <dc:creator>Robert_des_Bois</dc:creator>
      <dc:date>2009-04-08T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Boxplot with different color for each box ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Boxplot-with-different-color-for-each-box/m-p/16558#M406</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Put the variable name in parenthesis:&lt;BR /&gt;
cboxfill=(couleur)</description>
      <pubDate>Wed, 22 Apr 2009 02:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Boxplot-with-different-color-for-each-box/m-p/16558#M406</guid>
      <dc:creator>Kat</dc:creator>
      <dc:date>2009-04-22T02:42:05Z</dc:date>
    </item>
  </channel>
</rss>

