Re: [R] filling area under a function line

2009-05-24 Thread Duncan Murdoch
On 24/05/2009 2:50 PM, Tom H wrote: On Sun, 2009-05-24 at 19:32 +0100, Tom H wrote: polygon( c(from, x, to), c(min(y),y,min(y)), col=areacol, lty=0 ) I guess my question should have been, I don't seem to be able to query or "reflect" a

Re: [R] filling area under a function line

2009-05-24 Thread Tom H
On Sun, 2009-05-24 at 19:32 +0100, Tom H wrote: > polygon( > c(from, x, to), > c(min(y),y,min(y)), > col=areacol, lty=0 > ) > I guess my question should have been, I don't seem to be able to query or "reflect"

[R] filling area under a function line

2009-05-24 Thread Tom H
Hi R collective, I quite like the "curve" function because you can chuck a R function into it, and see the graph in one line of R. I had a google and found some threads for filling under the line; http://tolstoy.newcastle.edu.au/R/e2/help/07/09/25457.html However they seem to miss the point of