Skip to content

Commit 08fb7d5

Browse files
authored
Merge pull request #5137 from teunbrand/binned_right_description
Fix `right` description in binned scales
2 parents a8f5581 + 9126d49 commit 08fb7d5

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

R/scale-.r

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,11 @@ discrete_scale <- function(aesthetics, scale_name, palette, name = waiver(),
237237
#' the scale will ask the transformation object to create breaks, and this
238238
#' may result in a different number of breaks than requested. Ignored if
239239
#' breaks are given explicitly.
240-
#' @param right Should values on the border between bins be part of the right
241-
#' (upper) bin?
240+
#' @param right Should the intervals be closed on the right (`TRUE`, default) or
241+
#' should the intervals be closed on the left (`FALSE`)? 'Closed on the right'
242+
#' means that values at break positions are part of the lower bin (open on the
243+
#' left), whereas they are part of the upper bin when intervals are closed on
244+
#' the left (open on the right).
242245
#' @param show.limits should the limits of the scale appear as ticks
243246
#' @keywords internal
244247
binned_scale <- function(aesthetics, scale_name, palette, name = waiver(),

man/binned_scale.Rd

Lines changed: 5 additions & 2 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: 5 additions & 2 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: 5 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)