[R] plotting question: filling area between two lines

Christof Bigler bigler at fowi.ethz.ch
Tue Feb 25 17:52:15 CET 2003


Is there any way to fill the area within a plotted line and a 
horizontal line, e.g. in the following example:

x <- rnorm(100)
plot(x,type="l")
abline(h=0)

Thanks for any help.

Christof




More information about the R-help mailing list