-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add argument for minimal group size in boxplot#6781
Add argument for minimal group size in boxplot#6781teunbrand wants to merge 10 commits intotidyverse:mainfrom
Conversation
This PR aims to fix #6776.
Instead of mirroring dicook@7dbc03e, the threshold for what constitutes a small group is set via an argument. This preserves the current behaviour, while allowing for the requested behaviour. I'm still open for better argument names than min.group.n.
Note in example below, the first two groups are rendered as points without box and whiskers.
#> i Loading ggplot2
df <- data.frame(
x = rep(LETTERS[1:4], c(1, 5, 10, 50)),
y = rnorm(66)
)
ggplot(df, aes(x, y)) +
geom_boxplot(min.group.n = 6)
Created on 2025-12-19 with reprex v2.1.1
|
I was about to issue exactly this. This would be very helpful to me at this moment. May I do something to speed up the process? |
|
This PR would need a review from another maintainer and then the repo as a whole would need to wait until we do a new release. If you need t his today, I think you could indicate to download a PR via |