update_geom_defaults

0th

Percentile

Modify geom/stat aesthetic defaults for future plots

Modify geom/stat aesthetic defaults for future plots

Keywords
internal
Usage
update_geom_defaults(geom, new)

update_stat_defaults(stat, new)

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).

Aliases
  • update_geom_defaults
  • update_stat_defaults
Examples
# NOT RUN {
update_geom_defaults("point", list(colour = "darkblue"))
ggplot(mtcars, aes(mpg, wt)) + geom_point()
update_geom_defaults("point", list(colour = "black"))
# }
Documentation reproduced from package ggplot2, version 3.1.0, License: GPL-2 | file LICENSE

Community examples

Looks like there are no examples yet.