Skip to content

Take aes(order = ) into account for dodging #102

@alyst

Description

@alyst

ggplot2 v4.0.0 has introduced order aesthetics to make dodging consistent, when e.g. given coordinate category does have given color category.
It would be nice if ggbeeswarm would take it into account too.

ggplot(filter(mpg, drv != "f" | year != 1999),
       aes(x = drv, y = hwy, order = as.integer(factor(year)), colour = factor(year))) +
  geom_boxplot(position = position_dodge(width = 0.75, preserve = "single")) +
  geom_quasirandom(dodge.width = 0.75)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions