herneau
On 09/27/2012 08:48 AM, PIKAL Petr wrote:
Hi
It seems that it still works.
x<-c(3,7,7,3)
y<-c(4,4,6,6)
par(bg="pink")
plot(1:10,1:10)
polygon(x, y, border=TRUE, col=0)
Sent: Thursday, September 27, 2012 2:37 PM
To: r-help@r-project.org
Subject: [R] erasing a polygo
@r-
> project.org] On Behalf Of Terry Therneau
> Sent: Thursday, September 27, 2012 2:37 PM
> To: r-help@r-project.org
> Subject: [R] erasing a polygon
>
> I'm updating some (very) old code, and one particular option of its
> plot method depends on a once-was-true trick
>
I'm updating some (very) old code, and one particular option of its plot method depends on
a once-was-true trick
polygon(x, y, border=TRUE, col=0)
polygon(x, y, border=TRUE, density=0)
would draw the polygon AND erase whatever was underneath it back to background
color.
Is there a reli
3 matches
Mail list logo