grid.loon | R Documentation |
Create and optionally draw a grid grob from a loon widget handle
grid.loon(target, name = NULL, gp = gpar(), draw = TRUE, vp = NULL)
target |
either an object of class loon or a vector that specifies the
widget, layer, glyph, navigator or context completely. The widget is
specified by the widget path name (e.g. |
name |
a character identifier for the grob, or NULL. Used to find the grob on the display list and/or as a child of another grob. |
gp |
a gpar object, or NULL, typically the output from a call to the function gpar. This is basically a list of graphical parameter settings. |
draw |
a logical value indicating whether graphics output should be produced. |
vp |
a grid viewport object (or NULL). |
a grid grob of the loon plot
loonGrob
, plot.loon
## Not run:
library(grid)
widget <- with(iris, l_plot(Sepal.Length, Sepal.Width))
grid.loon(widget)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.