gEdit
gEditList
editGrob
The functions applyEdit and applyEdits apply one or more edit operations to a graphical object.
applyEdit
applyEdits
These functions are most useful for developers creating new graphical functions and objects.
gEdit(...) gEditList(...) applyEdit(x, edit) applyEdits(x, edits)
"gEdit"
"gEditList"
gEditList returns an object of class "gEditList".
applyEdit and applyEditList return the modified grob.
applyEditList
grob
grid.rect(gp=gpar(col="red")) # same thing, but more verbose grid.draw(applyEdit(rectGrob(), gEdit(gp=gpar(col="red"))))
Run the code above in your browser using DataLab