Skip to content
Back to formatted view

Raw Message

Message-ID: <1243191028.12551.16.camel@localhost.localdomain>
Date: 2009-05-24T18:50:28Z
From: Tom H
Subject: filling area under a function line
In-Reply-To: <1243189920.12551.13.camel@localhost.localdomain>

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 plot object to get at its attributes to fill in the
polygon call, without actually modifying the curve/plot function.

eg;

myplot<-curve(sin)

returns a NULL string

Tom