Learn R Programming

ggloop (version 0.1.0)

rm.gg2: 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

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.