Swap x and y mapping
Arguments
- mapping
output of
ggplot2::aes(...)
Examples
mapping <- ggplot2::aes(Petal.Length, Sepal.Width)
mapping
#> Aesthetic mapping:
#> * `x` -> `Petal.Length`
#> * `y` -> `Sepal.Width`
mapping_swap_x_y(mapping)
#> Aesthetic mapping:
#> * `x` -> `Sepal.Width`
#> * `y` -> `Petal.Length`