We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b8595 commit 67d134dCopy full SHA for 67d134d
R/stat-boxplot.R
@@ -63,7 +63,7 @@ StatBoxplot <- ggproto("StatBoxplot", Stat,
63
if (any(outliers)) {
64
stats[c(1, 5)] <- range(c(stats[2:4], data$y[!outliers]), na.rm = TRUE)
65
}
66
- if (vec_size(data) > 0L && !is.null(data$width)) {
+ if (length(data$width) > 0L) {
67
width <- data$width[1L]
68
} else if (vec_unique_count(data$x) > 1) {
69
width <- diff(range(data$x)) * 0.9
0 commit comments