Closed tungttnguyen closed 4 years ago
I have now implemented this by adding a geom_half_point_panel
, where instead of per grouping, the entire panel is computed at once, meaning that you can use all points for computing the position (quasirandom, jitter, beeswarm) but then differentiate them via color, shape etc. - see the example:
library(ggplot2)
library(gghalves)
ggplot(iris, aes(y = Sepal.Width)) +
geom_half_boxplot() +
geom_half_point_panel(aes(x = 0.5, color = Species),
transformation = ggbeeswarm:::PositionQuasirandom,
transformation_params = formals(ggbeeswarm::position_quasirandom)) +
theme_classic()
Created on 2020-02-26 by the reprex package (v0.3.0)
Thank you @erocoar !
Happy Friday,
A follow-up from this issue. Can we somehow get the combination of the 1st & 2nd plots?
Plot all the points together
With
geom_half_point()
, points are now colored differently but they are also not together anymoreCreated on 2019-10-11 by the reprex package (v0.3.0)