Create and optionally draw a grid grob from a loon widget handle
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).