edit_layers: Edit plot layer

View source: R/layer-manip.R

edit_layersR Documentation

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


gginnards documentation built on May 29, 2024, 2:08 a.m.