Skip to content
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
11 changes: 6 additions & 5 deletions R/scale-colour.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
#' * a single string naming a palette.
#' * a palette function that when called with a numeric vector with values
#' between 0 and 1 returns the corresponding output values.
#' @param ... Additional parameters passed on to the scale type
#' @inheritDotParams continuous_scale -scale_name -trans -minor_breaks -expand
#' @inheritDotParams binned_scale -scale_name -trans -expand
#' @param type `r lifecycle::badge("superseded")` One of the following:
#' * "gradient" (the default)
#' * "viridis"
#' * A function that returns a continuous colour scale.
#' @seealso [scale_colour_gradient()], [scale_colour_viridis_c()],
#' [scale_colour_steps()], [scale_colour_viridis_b()], [scale_fill_gradient()],
#' [scale_fill_viridis_c()], [scale_fill_steps()], and [scale_fill_viridis_b()]
#' @seealso [continuous_scale()] and [binned_scale()]
#'
#' The documentation on [colour aesthetics][aes_colour_fill_alpha].
#' @family colour scales
Expand Down Expand Up @@ -173,7 +172,7 @@ scale_fill_binned <- function(..., palette = NULL, aesthetics = "fill", guide =
#' * a single string naming a palette.
#' * a palette function that when called with a single integer argument (the
#' number of levels in the scale) returns the values that they should take.
#' @param ... Additional parameters passed on to the scale type,
#' @inheritDotParams discrete_scale -scale_name -expand -position -minor_breaks
#' @inheritParams discrete_scale
#' @param type `r lifecycle::badge("superseded")` The preferred mechanism for
#' setting the default palette is by using the theme. For example:
Expand All @@ -190,6 +189,8 @@ scale_fill_binned <- function(..., palette = NULL, aesthetics = "fill", guide =
#' * A function that returns a discrete colour/fill scale (e.g., [scale_fill_hue()],
#' [scale_fill_brewer()], etc).
#' @export
#' @seealso [discrete_scale()]
#' @family colour scales
#' @seealso
#' The `r link_book("discrete colour scales section", "scales-colour#sec-colour-discrete")`
#' @examples
Expand Down
1 change: 1 addition & 0 deletions man/scale_alpha.Rd

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

1 change: 1 addition & 0 deletions man/scale_brewer.Rd

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

97 changes: 93 additions & 4 deletions man/scale_colour_continuous.Rd

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

66 changes: 65 additions & 1 deletion man/scale_colour_discrete.Rd

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

1 change: 1 addition & 0 deletions man/scale_gradient.Rd

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

1 change: 1 addition & 0 deletions man/scale_grey.Rd

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

1 change: 1 addition & 0 deletions man/scale_hue.Rd

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

1 change: 1 addition & 0 deletions man/scale_identity.Rd

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

1 change: 1 addition & 0 deletions man/scale_manual.Rd

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

1 change: 1 addition & 0 deletions man/scale_steps.Rd

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

1 change: 1 addition & 0 deletions man/scale_viridis.Rd

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