Skip to content
Prev 176597 / 398503 Next

does grid.rect() not accept NULL argument from gpar(col=NULL) ?

Hi
Mark Heckmann wrote:
Your mistake was to assume that the documentation is correct! :)

That behaviour is actually WAY out of date.  You can do what you want
using NA ...

pushViewport(viewport(height=unit(.8, "npc")))
grid.rect(gp=gpar(col=NA, fill="green"))
popViewport()

Thanks for reporting the problem (the docs are now fixed).

Paul