Skip to content

Commit 597c5c9

Browse files
Explain possible arguments for discrete limits (#4047)
* Explain possible arguments for discrete limits Close #3838 * Fix typo * Regenerate .Rd files Co-authored-by: Johan Ejstrud <johan@ejstrud.com> Co-authored-by: Kara Woo <woo.kara@gmail.com>
1 parent 710b42a commit 597c5c9

File tree

8 files changed

+62
-16
lines changed

8 files changed

+62
-16
lines changed

R/scale-.r

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,12 @@ continuous_scale <- function(aesthetics, scale_name, palette, name = waiver(),
143143
#' - A character vector of breaks
144144
#' - A function that takes the limits as input and returns breaks
145145
#' as output
146-
#' @param limits A character vector that defines possible values of the scale
147-
#' and their order.
146+
#' @param limits One of:
147+
#' - `NULL` to use the default scale values
148+
#' - A character vector that defines possible values of the scale and their
149+
#' order
150+
#' - A function that accepts the existing (automatic) values and returns
151+
#' new ones
148152
#' @param drop Should unused factor levels be omitted from the scale?
149153
#' The default, `TRUE`, uses the levels that appear in the data;
150154
#' `FALSE` uses all the levels in the factor.

man/discrete_scale.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_discrete.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_grey.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_hue.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_linetype.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_manual.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/scale_shape.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)