grid.remove {grid} | R Documentation |
Remove a grob from a gTree or a descendant of a gTree.
grid.remove(gPath, warn=TRUE, strict = FALSE, redraw=TRUE) removeGrob(gTree, gPath, warn=TRUE, strict = FALSE)
gTree |
A gTree object. |
gPath |
A gPath object. For grid.remove this
specifyies a gTree on the display list. For removeGrob this
specifies a descendant of the specified gTree. |
warn |
A logical to indicate whether failing to find the specified grob should trigger an error. |
strict |
A boolean indicating whether the gPath must be matched exactly. |
redraw |
A logical value to indicate whether to redraw the grob. |
removeGrob
copies the specified grob and returns a modified
grob.
grid.remove
destructively modifies a grob on the display list.
If redraw
is TRUE
it then redraws everything to reflect the change.
removeGrob
returns a grob object; grid.remove
returns NULL
.
Paul Murrell
grob
, getGrob
,
removeGrob
, removeGrob
.