Learn R Programming

GGally (version 2.2.1)

mapping_swap_x_y: Swap x and y mapping

Description

Swap x and y mapping

Usage

mapping_swap_x_y(mapping)

Value

Aes mapping with the x and y values switched

Arguments

mapping

output of ggplot2::aes(...)

Examples

Run this code
mapping <- ggplot2::aes(Petal.Length, Sepal.Width)
mapping
mapping_swap_x_y(mapping)

Run the code above in your browser using DataLab