Re: [R] filling the area

From: Mauricio Cardeal <mcardeal_at_ufba.br>
Date: Thu 25 Jan 2007 - 13:34:23 GMT

Ok. Ive 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
>
>
>



R-help@stat.math.ethz.ch 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. Received on Fri Jan 26 00:52:20 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 14:00:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.