In a  histogram , is it possible to have different colors?
Example. I generated

x <- rnorm(1000000)
hist(x)

I want the histogram to have different colors based on the following condition
 mean(x)+sd(x)   with red color and  mean(x) - sd(x) with red color as
well. The  middle  one with blue color.
Is it possible to do that in R?
Thanks

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to