ggplot2 (version 1.0.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 DataCamp Workspace