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)
