Skip to content

Commit 67d134d

Browse files
Yunuuuuteunbrand
andauthored
Apply suggestion from @teunbrand
Co-authored-by: Teun van den Brand <[email protected]>
1 parent 22b8595 commit 67d134d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/stat-boxplot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ StatBoxplot <- ggproto("StatBoxplot", Stat,
6363
if (any(outliers)) {
6464
stats[c(1, 5)] <- range(c(stats[2:4], data$y[!outliers]), na.rm = TRUE)
6565
}
66-
if (vec_size(data) > 0L && !is.null(data$width)) {
66+
if (length(data$width) > 0L) {
6767
width <- data$width[1L]
6868
} else if (vec_unique_count(data$x) > 1) {
6969
width <- diff(range(data$x)) * 0.9

0 commit comments

Comments
 (0)