Skip to content

Weight parameter for stat_ellipse() #5272

@jammainen

Description

@jammainen

Geom_density, geom_barplot, geom_histogram and geom_barplot all support aes weight. Stat_ellipse() doesnt support.

I figured out that data[rep(data$rownumber,data$weight),] is a workaround, but that doesnt work too well(or at all) when weights are large. Scaling the weights could work, but then it would lose the accuracy of original data.

Would it be possible to add stat_ellipse() to suppport weight aesthetics?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions