Learn R Programming

xpose (version 0.4.19)

aes_filter: Convenience function to easily filter ggplot2 aesthetics

Description

Convenience function to easily filter ggplot2 aesthetics

Usage

aes_filter(mapping, drop = NULL, keep_only = NULL)

Value

ggplot2 aesthetics mapping

Arguments

mapping

ggplot2 aesthetics

drop

names of ggplot2 aesthetics to be removed from the `mapping`. Alternative to the `keep_only` argument.

keep_only

names of the only ggplot2 aesthetics to be kept in the `mapping`. Alternative to the `drop` argument.