Skip to content

geom_violin() warns that weight aesthetic dropped during statistical transformation #5263

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

Closed
AroneyS opened this issue Apr 9, 2023 · 1 comment · Fixed by #5267
Closed

Comments

@AroneyS
Copy link

AroneyS commented Apr 9, 2023

Similar to #5053, geom_violin() also warns that weight is dropped, although it appears to be used as expected.

Reprex: (note that the two geom_violin() calls produce different outlines)

library(ggplot2)

ggplot(mtcars, aes(wt, mpg)) +
  geom_point(aes(size = cyl)) +
  geom_violin(aes(weight = cyl)) +
  geom_violin()
@teunbrand
Copy link
Collaborator

Thanks for the report! I can confirm the bug. I really thought I had fixed this for most stats, but this one must've slipped the net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants