Skip to content

Commit c1b6275

Browse files
authored
Fixes # 5960 (#6036)
Changed "unscaled x" because the function takes transformed values.
1 parent b1a7a58 commit c1b6275

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

R/stat-bin.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#' @param binwidth The width of the bins. Can be specified as a numeric value
2-
#' or as a function that calculates width from unscaled x. Here, "unscaled x"
3-
#' refers to the original x values in the data, before application of any
4-
#' scale transformation. When specifying a function along with a grouping
5-
#' structure, the function will be called once per group.
2+
#' or as a function that takes x after scale transformation as input and
3+
#' returns a single numeric value. When specifying a function along with a
4+
#' grouping structure, the function will be called once per group.
65
#' The default is to use the number of bins in `bins`,
76
#' covering the range of the data. You should always override
87
#' this value, exploring multiple widths to find the best to illustrate the

man/geom_histogram.Rd

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

man/stat_summary.Rd

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

0 commit comments

Comments
 (0)