Skip to content
Prev 306344 / 398506 Next

boxplot of different colors

Shamelessly stealling Richard Heiberger's data set I'd suggest another way using ggplot2 which you would need to install

library(ggplot2)

dataN <- data.frame(GE_distance=rnorm(260),
                    Diet_B=factor(rep(1:13, each=20)))

p  <-  ggplot(dataN , aes(Diet_B, GE_distance, colour = Diet_B  )) + geom_boxplot() +
       xlab("Migration") + ylab("Distance")
p 


John Kane
Kingston ON Canada
____________________________________________________________
Send any screenshot to your friends in seconds...
Works in all emails, instant messengers, blogs, forums and social networks.
TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if2 for FREE