Learn R Programming

ggplot2 (version 0.9.0)

update_geom_defaults: Modify geom/stat aesthetic defaults for future plots

Description

Modify geom/stat aesthetic defaults for future plots

Usage

update_geom_defaults(geom, new)

update_stat_defaults(stat, new)

Arguments

stat,geom
name of geom/stat to modify
new
named list of aesthetics

Examples

Run this code
update_geom_defaults("point", list(colour = "darkblue"))
qplot(mpg, wt, data = mtcars)
update_geom_defaults("point", list(colour = "black"))

Run the code above in your browser using DataLab