-
Notifications
You must be signed in to change notification settings - Fork 2.1k
grouping in geom_boxplot broken after upgrading from 3.5.2 to 3.6.1 #3496
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
Comments
I can make both data and full script available, but this is an ongoing research project with personally identifiable data, so I cannot just post it here. |
here is the input data for the box plot at least: stats.txt |
you should make a fully reproducible example with a dataset such as |
This is listed as a breaking change in the 3.2.0 release notes (issue #3316). While the plot may have worked for you, it was using code whose behavior was undefined. To fix your plot, you'll have to define a |
Problem is that the error message is very unclear and misleading, as I clearly did set a group = in the code, and the release notes also do not specify what stopped working or how the input is supposed to be given now. |
The error message states exactly what the problem is: "Can't draw more than one boxplot per group." You will have to assign a grouping variable that has a unique value for each boxplot you want to see drawn. If you're not sure what that means or how to achieve this, I suggest you ask over on the RStudio forums or on Stackoverflow. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Following the advice in https://ggplot2.tidyverse.org/reference/geom_boxplot.html, I made a box plot with manually created statistics, using:
This worked wonderfully until today, after I upgraded from R 3.5.2 to 3.6.1 and reinstalled and updated my packages. Now this happens:
Clearly, I did not forget, and it was working fine yesterday. The input data has also not changed.
The text was updated successfully, but these errors were encountered: