opts {ggplot2}R Documentation

Plot options

Description

Set options/theme elements for a single plot

Usage

opts(...)

Arguments

...

Details

Use this function if you want to modify a few theme settings for a single plot.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

p <- qplot(mpg, wt, data = mtcars)
p 
p + opts(panel_background = theme_rect(colour = "pink"))
p + theme_bw()

[Package ggplot2 version 0.8.2 Index]