Skip to content

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

Closed
@AroneyS

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

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