Last chance! 50% off unlimited learning
Sale ends in
grid.draw(x, recording=TRUE)
"grob"
or NULL. The grob and gTree methods automatically push any viewports in a
vp
slot and automatically apply any gpar
settings
in a gp
slot. In addition, the gTree method pushes and
ups any viewports in a childrenvp
slot and automatically
calls grid.draw
for any grobs in a children
slot.
The methods for grob and gTree call the generic hook functions
preDrawDetails
, drawDetails
, and postDrawDetails
to allow classes derived from grob or gTree to perform
additional viewport pushing/popping and produce additional
output beyond the default behaviour for grobs and gTrees.
grob
.
grid.newpage()
## Create a graphical object, but don't draw it
l <- linesGrob()
## Draw it
grid.draw(l)
Run the code above in your browser using DataLab