Learn R Programming

xpose (version 0.4.19)

aes_rename: Convenience function to easily rename ggplot2 aesthetics

Description

Convenience function to easily rename ggplot2 aesthetics

Usage

aes_rename(mapping, from, to)

Value

ggplot2 aesthetics mapping

Arguments

mapping

ggplot2 aesthetics

from

names of ggplot2 aesthetics to be renamed. Note: should match the order of arg `to`.

to

new names to be set for ggplot2 aesthetics. Note: should match the order of arg `from`.