grid.get {grid}R Documentation

Get the Contents of a Grid Graphical Object

Description

A Grid graphical object contains a list structure; this function returns that list structure.

Usage

grid.get(grob, ...)

Arguments

grob An object of class "grob".
... Zero or more element-specifiers. Each specifier may be a single character or numeric value.

Details

If there are no specifiers then the value returned is just the list structure of the grob. If there is a specifier and the list structure of the grob has a corresponding element, and that element is an object of class "grob", then the return value is the list structure within that element. And so on ...

Typically, users will not need to call this function, even when writing their own graphical objects. Most graphical object methods will work only with the list structure.

Value

A list structure.

Author(s)

Paul Murrell

See Also

grid.grob.

Examples

xa <- grid.xaxis(draw=FALSE)
grid.get(xa)
grid.get(xa, "ticks")

temp <- grid.collection(axis=grid.xaxis(draw=FALSE))
grid.get(temp, "children", "axis", "ticks")

[Package Contents]