grid.get {grid}R Documentation

Get a Grid Graphical Object

Description

Retrieve a grob or a descendant of a grob.

Usage

grid.get(gPath, strict = FALSE) 
getGrob(gTree, gPath, strict = FALSE) 

Arguments

gTree A gTree object.
gPath A gPath object. For grid.get this specifyies a grob on the display list. For getGrob this specifies a descendant of the specified gTree.
strict A boolean indicating whether the gPath must be matched exactly.

Value

A grob object.

Author(s)

Paul Murrell

See Also

grob, getGrob, addGrob, removeGrob.

Examples

grid.xaxis(name="xa")
grid.get("xa")
grid.get(gPath("xa", "ticks"))

grid.draw(gTree(name="gt", children=gList(xaxisGrob(name="axis"))))
grid.get(gPath("gt", "axis", "ticks"))

[Package Contents]