edit_layers | R Documentation |
Delete or move one or more layers in a ggplot object.
edit_layers(x, match_type = NULL, position = 0L, idx = NULL, action)
x |
an object of class |
match_type |
The name of the ggproto object class for the geom(s), position(s) or stat(s) matching that of the layers to be operated upon. |
idx |
integer vector Index(es) into the list of layers, used to select the layers to be operated upon. |
action |
character One of "delete", "move", or "which". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.