gginnards (version 0.0.2)

edit_layers: Edit plot layer

Description

Delete or move one or more layers in a ggplot object.

Usage

edit_layers(x, match_type = NULL, position = 0L, idx = NULL, action)

Arguments

x

an object of class gg to be operated upon.

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".