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

______________________________________________
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