grid.get {grid} | R Documentation |
Retrieve a grob or a descendant of a grob.
grid.get(gPath, strict = FALSE) getGrob(gTree, gPath, strict = FALSE)
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. |
A grob object.
Paul Murrell
grob
, getGrob
,
addGrob
, removeGrob
.
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"))