Skip to content

Commit bee7034

Browse files
authored
Merge pull request #5087 from teunbrand/stat_bin_warning
stat_bin deals with `width` per usual
2 parents 014c5d2 + a030d06 commit bee7034

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/stat-bin.r

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ StatBin <- ggproto("StatBin", Stat,
123123
params$closed <- if (params$right) "right" else "left"
124124
params$right <- NULL
125125
}
126-
if (!is.null(params$width)) {
127-
deprecate_warn0("2.1.0", "stat_bin(width)", "geom_bar()")
128-
}
129126
if (!is.null(params$boundary) && !is.null(params$center)) {
130127
cli::cli_abort("Only one of {.arg boundary} and {.arg center} may be specified in {.fn {snake_class(self)}}.")
131128
}
@@ -146,8 +143,7 @@ StatBin <- ggproto("StatBin", Stat,
146143
breaks = NULL, flipped_aes = FALSE,
147144
# The following arguments are not used, but must
148145
# be listed so parameters are computed correctly
149-
origin = NULL, right = NULL, drop = NULL,
150-
width = NULL) {
146+
origin = NULL, right = NULL, drop = NULL) {
151147
x <- flipped_names(flipped_aes)$x
152148
if (!is.null(breaks)) {
153149
if (!scales[[x]]$is_discrete()) {

0 commit comments

Comments
 (0)