Learn R Programming

ggplot2 (version 0.9.0)

+.ggplot: Modify a plot by adding on new components.

Description

What happens when you add on:

Usage

## S3 method for class 'ggplot':
+(p, object)

Arguments

p
plot object
object
component to add

Details

  • data.frame: replace current data.frame (must use%+%)
  • uneval: replace current aesthetics
  • layer: add new layer
  • options: update plot options
  • scale: replace current scale
  • coord: override current coordinate system
  • facet: override current coordinate faceting

See Also

ggplot