opts {ggplot2} | R Documentation |
Set options/theme elements for a single plot
opts(...)
... |
Use this function if you want to modify a few theme settings for a single plot.
Hadley Wickham <h.wickham@gmail.com>
p <- qplot(mpg, wt, data = mtcars) p p + opts(panel_background = theme_rect(colour = "pink")) p + theme_bw()