[R] filling the area

Benilton Carvalho bcarvalh at jhsph.edu
Thu Jan 25 14:25:39 CET 2007


take a look at:

?polygon

b

On Jan 25, 2007, at 8:18 AM, Mauricio Cardeal wrote:

> Please, how to fill the area under the curve?
>
> x <- c(1:10)
> y <- c(rnorm(10))
> plot(x,y)
> lines(x,y)
>
> Thanks,
> Mauricio Cardeal



More information about the R-help mailing list