Skip to contents

This function can be used to adjust the mapping of a plot.

Usage

add_mapping(plot, ...)

Arguments

plot

a ggplot2 plot

...

arguments passed on to ggplot2::aes()

Examples

p <- iris |> plot2(Sepal.Length, Sepal.Width, Species, zoom = TRUE)
#> i Using type = "point" since both axes are numeric
p


p |> add_mapping(shape = Species)