Skip to content

Grid gpar(col=NULL)

2 messages · Damon Wischik, Uwe Ligges

#
I have found that gpar(col=NULL) doesn't behave as I expect it to. Is this
due to a misconception on my part, or a bug?

library(grid)
grid.newpage()
grid.circle(gp=gpar(fill="yellow",col=NULL))
# Draws a yellow circle with no border, as it should.
# But if you resize the graphics window,
# the circle acquires a black border.

I am running Rgui for R 1.7.0 on Windows XP.

Damon Wischik.
#
Damon Wischik wrote:
> library(grid)
It's a bug (at least on Windows, it works on X11).

Uwe Ligges