grapes-g-less-than-grapes: Begin constructing a ggghost cache

Description Usage Arguments Details Value Examples

Description

The data and initial ggpot() call are stored as a list (call) with attribute (data).

Usage

1
lhs %g<% rhs

Arguments

lhs

LHS of call

rhs

RHS of call

Details

The data must be passed into the ggplot call directly. Passing this in via a magrittr pipe remains as a future improvement. The newly created ggghost object is a list of length 1 containing the ggplot call, with attribute data; another list, containing the data_name and data itself.

Value

Assigns the ggghost structure to the lhs symbol.

Examples

1
2
3
4
## create a ggghost object
tmpdata <- data.frame(x = 1:100, y = rnorm(100))

z %g<% ggplot(tmpdata, aes(x,y))

ggghost documentation built on May 1, 2019, 9:25 p.m.