-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: layer(geom = "boxplot",...)
produces error
#6191
Comments
The answer on whether this is possible is 'yes'. |
Ahh, I see.. Maybe related to this is that layer seem to error for boxplot with a colour/fill aesthetic? library(tidyverse)
library(palmerpenguins)
penguins |>
ggplot(aes(x = species, y = flipper_length_mm, colour = species)) +
layer(
geom = "boxplot",
stat = "boxplot",
position = "dodge2",
)
#> Warning: Removed 2 rows containing non-finite outside the scale range
#> (`stat_boxplot()`).
#> Error in unit(x, default.units): 'x' and 'units' must have length > 0 Created on 2024-11-20 with reprex v2.1.1 |
You're right about that related case and I'm happy to fix that to ensure |
layer(geom = "boxplot",...)
produces error
Do you want to leave this open as issue (or create an issue) that the extra new boxplot params can't be used with Or just close for now once the bug bit has been fixed in that it is not that important and can't be done any time soon? (My bad for mixing 2 issues) |
They can, but they should be lists of |
Ah, I get it now - nice! |
Wondering if it was possible to make the extra args (.e.g. median.colour) added to boxplot could also available via
layer
?Created on 2024-11-20 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: