gg_add {ggplot} | R Documentation |
Convenience method to make writing gg_XXXX functions easier.
gg_add(map, plot, aesthetics=list(), ..., data=NULL)
map |
type of grob mapping to add |
plot |
plot object |
aesthetics |
list of aesthetic mappings |
... |
parameters passed to grob function |
data |
data frame |
Will automatically add scales if needed.
modified plot object
Hadley Wickham <h.wickham@gmail.com>