%g<% {ggghost} | R Documentation |
Begin constructing a ggghost cache
Description
The data and initial ggpot()
call are stored as a list (call) with
attribute (data).
Usage
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
## create a ggghost object
tmpdata <- data.frame(x = 1:100, y = rnorm(100))
z %g<% ggplot(tmpdata, aes(x,y))
[Package ggghost version 0.2.1 Index]