-
Notifications
You must be signed in to change notification settings - Fork 2k
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to jitter outliers in a boxplot #4480
Comments
I don't think that it would make sense to add this as an option to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to be able to add a small amount of jittering to outliers in a boxplot or alternatively stack the points to avoid having them overlap.
Here is an example of where points in a boxplot overlap:
To add jittering to these outliers, we currently have to result to the following hack, by creating a separate dataset of outliers and plotting them using
geom_jitter()
manually.I understand that the
position
argument ingeom_boxplot()
is already "occupied", so maybe the simplest solution would probably to just add a new argumentoutlier.jitter = c(0, 0)
(for x and y coordinate jittering respectively).An even better solution would of course be to incorporate the beeswarm algorithm from ggbeeswarm:
Created on 2021-05-17 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: