
Last chance! 50% off unlimited learning
Sale ends in
Intended only for expert use.
delayGrob(expr, list, name=NULL, gp=NULL, vp=NULL)
grid.delay(expr, list, name=NULL, gp=NULL, vp=NULL)
expression
or call
or
an unevaluated expression.expr
is to
be evaluated.gpar
, typically the output
from a call to the function gpar
. This is basically
a list of graphical parameter settings."delayedgrob"
(and drawn, in the case of grid.delay
).
The makeContent
method for this class
evaluates the expression with the list as the evaluation
environment (and the grid Namespace as the parent of that
environment). The expr
argument should return a grob as its result.
These functions are analogues of the grid.record()
and recordGrob()
functions; the difference is that
these functions are based on the makeContent()
hook,
while those functions are based on the drawDetails()
hook.
recordGraphics
grid.delay({
w <- convertWidth(unit(1, "inches"), "npc")
rectGrob(width=w)
},
list())
Run the code above in your browser using DataLab