Skip to content

Commit d5b339a

Browse files
authored
reference binwidth instead of width in documentation (#3813)
* reference binwidth instead of width in documentation * generate geom_histogram document
1 parent b434351 commit d5b339a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/stat-bin.r

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#' `boundary`, may be specified for a single plot. `center` specifies the
1616
#' center of one of the bins. `boundary` specifies the boundary between two
1717
#' bins. Note that if either is above or below the range of the data, things
18-
#' will be shifted by the appropriate integer multiple of `width`.
19-
#' For example, to center on integers use `width = 1` and `center = 0`, even
18+
#' will be shifted by the appropriate integer multiple of `binwidth`.
19+
#' For example, to center on integers use `binwidth = 1` and `center = 0`, even
2020
#' if `0` is outside the range of the data. Alternatively, this same alignment
21-
#' can be specified with `width = 1` and `boundary = 0.5`, even if `0.5` is
21+
#' can be specified with `binwidth = 1` and `boundary = 0.5`, even if `0.5` is
2222
#' outside the range of the data.
2323
#' @param breaks Alternatively, you can supply a numeric vector giving
2424
#' the bin boundaries. Overrides `binwidth`, `bins`, `center`,

man/geom_histogram.Rd

Lines changed: 3 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)