grid.loon: Create and optionally draw a grid grob from a loon widget...

grid.loonR Documentation

Create and optionally draw a grid grob from a loon widget handle

Description

Create and optionally draw a grid grob from a loon widget handle

Usage

grid.loon(target, name = NULL, gp = gpar(), draw = TRUE, vp = NULL)

Arguments

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. '.l0.plot'), the remaining objects by their ids.

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).

Value

a grid grob of the loon plot

See Also

loonGrob, plot.loon

Examples

## Not run: 
library(grid)
widget <- with(iris, l_plot(Sepal.Length, Sepal.Width))
grid.loon(widget)

## End(Not run)

loon documentation built on July 9, 2023, 5:48 p.m.