Skip to content

Update update_geom_defaults() docs #6158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading