[R] color individual bar of histogram?

Whit Armstrong armstrong.whit at gmail.com
Tue Oct 28 19:48:21 CET 2008


Anyone know a quick way to color one bar of a histogram?

I want to mark the bar in which the most recent observation falls.

So, for instance:

x <- rnorm(100)
latest.ob <- x[100]
hist(x)
## how do I mark the bucket that latest.ob falls into?


Thanks,
Whit



More information about the R-help mailing list