update_defaults: Modify geom/stat aesthetic defaults for future plots

Description Usage Arguments Examples

Description

Modify geom/stat aesthetic defaults for future plots

Usage

1
2
3

Arguments

new

Named list of aesthetics.

stat, geom

Name of geom/stat to modify (like "point" or "bin"), or a Geom/Stat object (like GeomPoint or StatBin).

Examples

1
2
3
update_geom_defaults("point", list(colour = "darkblue"))
ggplot(mtcars, aes(mpg, wt)) + geom_point()
update_geom_defaults("point", list(colour = "black"))

ggplot2 documentation built on May 20, 2017, 12:35 a.m.

Search within the ggplot2 package
Search all R packages, documentation and source code