eclarke / ggbeeswarm

Column scatter / beeswarm-style plots in ggplot2
GNU General Public License v3.0
539 stars 31 forks source link

Retain exact y values when using geom_beeswarm(method="center") #95

Open jbengler opened 4 months ago

jbengler commented 4 months ago

Hi @eclarke,

thanks for this great package!

I noticed that geom_beeswarm(method="center") nicely centers the points. However, it also changes the y position resulting in binned and thus "inaccurate" y values.

Without method="center" correct y values are displayed center_off

With method="center" y value position is "inaccurate" center_on

I would love to have the best of both worlds: centered points that faithfully recapitulate the real y value.

I know that this is possible in plotting tools like Prism, which does a great job in positioning points. However, a ggplot version of this would be fantastic!