[R] filling the area

Mauricio Cardeal mcardeal at ufba.br
Thu Jan 25 14:34:23 CET 2007


Ok. I´ve tried before and all I got was a polygon indeed with the 
extremes points connected. Please where is the error ?

polygon(x,y,col="gray", border = "red")

Benilton Carvalho escreveu:
> 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
>
> __________ NOD32 1.1752 (20060912) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com
>
>
>



More information about the R-help mailing list