aes_rename: Convenience function to easily rename ggplot2 aesthetics

View source: R/xplot_helpers.R

aes_renameR Documentation

Convenience function to easily rename ggplot2 aesthetics

Description

Convenience function to easily rename ggplot2 aesthetics

Usage

aes_rename(mapping, from, to)

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'.

Value

ggplot2 aesthetics mapping


xpose documentation built on May 29, 2024, 5:12 a.m.