Skip to content

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

Closed

Description

@AroneyS

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()

Activity

  1. teunbrand commented on Apr 10, 2023

    @teunbrand
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions