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=plot$data)

### 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>

### Examples

[Package ggplot version 0.2.2 Index]