Re: [R] Histogram color

2010-03-04 Thread Greg Snow
: Thursday, March 04, 2010 5:42 AM > To: R help > Subject: [R] Histogram color > > In a histogram , is it possible to have different colors? > Example. I generated > > x <- rnorm(100) > hist(x) > > I want the histogram to have different colors based on the followi

Re: [R] Histogram color

2010-03-04 Thread David Winsemius
On Mar 4, 2010, at 7:41 AM, Ashta wrote: In a histogram , is it possible to have different colors? Example. I generated x <- rnorm(100) 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 c

[R] Histogram color

2010-03-04 Thread Ashta
In a histogram , is it possible to have different colors? Example. I generated x <- rnorm(100) 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.