Remove ggplot2 style and stand-alone aesthetic arguments (i.e. y, x:z, etc).

Description

Expression aesthetics (variables wrapped in functions or using prefix/infix operators) need to be handled differently than just standalone variable aesthetics (i.e. mpg) or dplyr-like variable calls (i.e. mpg:hp).

Usage

1
rm.gg2(expr)

Arguments

expr

A parse tree generated by substitute(). If the tree is not wrapped by c() then it is advised to wrap x with list().

Details

The reason it is advised wrap x in a list is due to the way x will be indexed/subsetted. The c function wrapping is assumed, so therefore the list wrapping is needed.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.