-
Notifications
You must be signed in to change notification settings - Fork 14
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
y-position of points created with gghalves::geom_half_point() is variable #26
Comments
Is there any update on this issue? I add here a similar MRE as the above, with a couple of pictures:
In the following screenshots it is possible to see that the position of the individual data points is wrong and changes with every run, especially when there are only few points: |
@alesantuz Apologies for the long silence- it's difficult when life gets in the way. I promise to review this over the next few days 😊 |
Thanks @erocoar! |
Hi @erocoar! Any update on this issue? I have exactly the same problem... Thanks 😊 |
This happens due to data <- data.frame(
group = c("1", "2", "2", "1", "2", "2", "2", "2"),
value = c(0.526, 0.473, 0.505, 0.508, 0.505, 0.488, 0.47, 0.499)
)
ggplot2::ggplot() +
gghalves::geom_half_point(
data = (data),
transformation = ggplot2::position_jitter(height = 0),
ggplot2::aes(
x = .data[["group"]],
y = .data[["value"]]
)
) If jittering in y should not occur by default, I could open a pull request and set |
Thank you very much @Neurarian! Yeah, I really think it shouldn't happen by default, as we aim to show the true values here, not random dots. And I agree that |
Windows 10 x64, build 19045, x86-64 machine
R version 4.3.1 (2023-06-16 ucrt)
As per title, when plotting individual data points with
gghalves::geom_half_point()
, the y-position of the points changes at every run, especially when the data set is very small.MRE:
Another reproducible example, where the error is amplified by the small data set:
The text was updated successfully, but these errors were encountered: