gg_add {ggplot}R Documentation

gg add

Description

Convenience method to make writing gg_XXXX functions easier.

Usage

gg_add(map, plot, aesthetics=list(), ..., data=NULL)

Arguments

map type of grob mapping to add
plot plot object
aesthetics list of aesthetic mappings
... parameters passed to grob function
data data frame

Details

Will automatically add scales if needed.

Value

modified plot object

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot version 0.4.2 Index]