[R] Combine colors and shading lines

HBaize HBaize at buttecounty.net
Fri Jun 20 22:33:22 CEST 2008



Well perhaps we can take the mystery of why it work for me, but not you, off
line :-)
I'm using R 2.6.1 on a WinXP platform. 

You could try just using shades of color like this:

data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
a1<-a[1:2,]

barplot(a1,
        type="n",
        col=c("red","pink","blue","lightblue","purple",
              "lavender","green","lightgreen"),
        beside = TRUE )




-- 
View this message in context: http://www.nabble.com/Combine-colors-and-shading-lines-tp18033630p18036907.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list