Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Oct 24, 2024
1 parent 5e62f0c commit 680c861
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion R/geom-defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
#' @keywords internal
#' @note
#' Please note that geom defaults can be set *en masse* via the `theme(geom)`
#' argument.
#' argument. The guidelines for when to use which function are as follows:
#'
#' * If you want to change defaults for all geoms in all plots, use
#' `theme_update(geom = element_geom(...))`.
#' * If you want to change defaults for all geoms in a single plot, use
#' `+ theme(geom = element_geom(...))`.
#' * If you want to change defaults for one geom in all plots, use
#' `update_geom_defaults()`.
#' * If you want to change settings for one geom in a single plot, use fixed
#' aesthetic parameters in a layer, like so: `geom_point(colour = "red")`.
#'
#' @export
#' @examples
#'
Expand Down
12 changes: 11 additions & 1 deletion man/update_defaults.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 680c861

Please sign in to comment.