[R] Filled region on graph

Yves Gauvreau cyg at sympatico.ca
Fri Nov 3 01:27:14 CET 2000


Hi,

Say I'd like to fill in color or by hashing the region above 0.5 and
below -0.5 in the following situation.

> x <- seq(0,2*pi, length=100)
> plot(x, sin(x), type="l")
> # Now fill the top part and the bottom part

The only mention of the words "fill" or "filled" seem to be in
filled.contour.

So is this possible in R?

Thanks in advance.

Yves Gauvreau

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list