dot-gg: Apply function on the data of a plot

Description Usage Arguments Value Examples

Description

This works in a similar way to `+.gg` with functions, except that the function is applied to the plot's data instead of the plot.

Usage

1
2
## S3 method for class 'gg'
e1 - e2

Arguments

e1

An object of class ggplot()

e2

A plot component, as described in ?ggplot2:::`+.gg` or a function

Value

A plot object

Examples

1
2
3
ggplot(iris, aes(Petal.Length)) +
  geom_density() -
  head

moodymudskipper/ggfun documentation built on May 26, 2019, 3:33 p.m.