Hi
The help page for Working with Viewports (e.g., pushViewport()) has a
brief mention when talking about the ROOT viewport ...
The viewport tree always has a single root viewport (created by the
system) which corresponds to the entire device (and default graphical
parameter settings).
Hi,
Thanks for pointing this out. I do have the book, unfortunately I left
it abroad this year. I would think that such brief mention in ?gpar
could be useful (because that's where one first looks for gpar()
defaults --- which are not listed).
Best regards,
baptiste
On 6 August 2010 00:54,
Dear list,
I'm puzzled by the graphical output in the following example,
library(grid)
foo - function(){
grid.rect(gp=gpar(fill=black))
print(get.gpar()$fill)
grid.rect(width=0.2,height=0.2)
}
png(test.png, bg = transparent)
foo()
dev.off()
png(test1.png, bg = white)
foo()
dev.off()