[R] Boxplot colors

2014-05-22 Thread Shane Carey
Hi Im producing boxplots based on factors and rearranging them by median (This is for a Geochemistry element). Im giving each boxplot a unique color based on its level (factor) name. Im trying to produce a look up list to produce these colors as the order of the boxplots will change from element

Re: [R] Boxplot colors

2014-05-22 Thread Richard M. Heiberger
## Shane, ## This uses your color_list. Your other variables weren't included in the email ## so I invented some data. ## I recommend bwplot() using panel=panel.bwplot.superpose ## and I also show how to use boxplot() ## install.packages(HH) ## if necessary. library(HH) ##

Re: [R] Boxplot colors

2014-05-22 Thread Shane Carey
Thanks very much, that worked superb! On Thu, May 22, 2014 at 3:41 PM, Richard M. Heiberger r...@temple.eduwrote: ## Shane, ## This uses your color_list. Your other variables weren't included in the email ## so I invented some data. ## I recommend bwplot() using

[R] boxplot colors

2008-06-22 Thread Paul Adams
Hello everyone, I am trying to color two boxplots on the same graph two different colors. I have tried the following boxplot(5,1:19,5,20:39,col=c(red,blue)) but all I get are two blue boxes. Any help would be appreciated Paul [[alternative HTML version deleted]]

Re: [R] boxplot colors

2008-06-22 Thread HBaize
You are drawing four box plots, not two. Two of them are just the number 5. The two box plots that are only 5 don't have a box, so you can't see that they're red. Try this: boxplot(1:19,20:39,col=c(red,blue)) Paul Adams-8 wrote: Hello everyone, I am trying to color two boxplots on the