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


guiastrennec/xpose documentation built on Feb. 16, 2024, 8:14 p.m.