Skip to contents

Use this function to move a certain plot layer up or down. This function returns a ggplot object.

Usage

move_layer(plot, move = -1, layer = length(plot$layers))

Arguments

plot

a ggplot object

move

number of layers to move layer up or down

layer

the layer to affect, defaults to top layer