Skip to content

Commit 0cbd420

Browse files
authored
update update_geom_defaults() docs (#6158)
1 parent 9c21cb5 commit 0cbd420

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

R/geom-defaults.R

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@
1111
#' @keywords internal
1212
#' @note
1313
#' Please note that geom defaults can be set *en masse* via the `theme(geom)`
14-
#' argument.
14+
#' argument. The guidelines for when to use which function are as follows:
15+
#'
16+
#' * If you want to change defaults for all geoms in all plots, use
17+
#' `theme_update(geom = element_geom(...))`.
18+
#' * If you want to change defaults for all geoms in a single plot, use
19+
#' `+ theme(geom = element_geom(...))`.
20+
#' * If you want to change defaults for one geom in all plots, use
21+
#' `update_geom_defaults()`.
22+
#' * If you want to change settings for one geom in a single plot, use fixed
23+
#' aesthetic parameters in a layer, like so: `geom_point(colour = "red")`.
24+
#'
1525
#' @export
1626
#' @examples
1727
#'

man/update_defaults.Rd

+11-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)