Skip to content

Commit a030d06

Browse files
committed
stat_bin deals with width per usual
1 parent a3e79d7 commit a030d06

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
@@ -124,9 +124,6 @@ StatBin <- ggproto("StatBin", Stat,
124124
params$closed <- if (params$right) "right" else "left"
125125
params$right <- NULL
126126
}
127-
if (!is.null(params$width)) {
128-
deprecate_warn0("2.1.0", "stat_bin(width)", "geom_bar()")
129-
}
130127
if (!is.null(params$boundary) && !is.null(params$center)) {
131128
cli::cli_abort("Only one of {.arg boundary} and {.arg center} may be specified in {.fn {snake_class(self)}}.")
132129
}
@@ -147,8 +144,7 @@ StatBin <- ggproto("StatBin", Stat,
147144
breaks = NULL, flipped_aes = FALSE,
148145
# The following arguments are not used, but must
149146
# be listed so parameters are computed correctly
150-
origin = NULL, right = NULL, drop = NULL,
151-
width = NULL) {
147+
origin = NULL, right = NULL, drop = NULL) {
152148
x <- flipped_names(flipped_aes)$x
153149
if (!is.null(breaks)) {
154150
if (!scales[[x]]$is_discrete()) {

0 commit comments

Comments
 (0)