Skip to content

Commit af4cc02

Browse files
authored
Passing parameters to trans argument (#5361)
1 parent d21ac51 commit af4cc02

File tree

9 files changed

+36
-27
lines changed

9 files changed

+36
-27
lines changed

R/scale-.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@
7373
#'
7474
#' A transformation object bundles together a transform, its inverse,
7575
#' and methods for generating breaks and labels. Transformation objects
76-
#' are defined in the scales package, and are called `<name>_trans` (e.g.,
77-
#' [scales::boxcox_trans()]). You can create your own
78-
#' transformation with [scales::trans_new()].
76+
#' are defined in the scales package, and are called `<name>_trans`. If
77+
#' transformations require arguments, you can call them from the scales
78+
#' package, e.g. [`scales::boxcox_trans(p = 2)`][scales::boxcox_trans].
79+
#' You can create your own transformation with [scales::trans_new()].
7980
#' @param guide A function used to create a guide or its name. See
8081
#' [guides()] for more information.
8182
#' @param expand For position scales, a vector of range expansion constants used to add some

man/binned_scale.Rd

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

man/continuous_scale.Rd

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

man/scale_binned.Rd

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

man/scale_continuous.Rd

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

man/scale_gradient.Rd

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

man/scale_linewidth.Rd

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

man/scale_size.Rd

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

man/scale_steps.Rd

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

0 commit comments

Comments
 (0)