Produces graphical output from a graphical object.
An object of class
A logical value to indicate whether the drawing operation should be recorded on the Grid display list.
This is a generic function with methods for grob and gTree objects.
The grob and gTree methods automatically push any viewports in a
vp slot and automatically apply any
gp slot. In addition, the gTree method pushes and
ups any viewports in a
childrenvp slot and automatically
grid.draw for any grobs in a
The methods for grob and gTree call the generic hook functions
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.
grid.newpage() ## Create a graphical object, but don't draw it l <- linesGrob() ## Draw it grid.draw(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.