Skip to content
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

stats:::regularize.values warning messages #69

Open
dansmith01 opened this issue Jan 19, 2022 · 0 comments
Open

stats:::regularize.values warning messages #69

dansmith01 opened this issue Jan 19, 2022 · 0 comments

Comments

@dansmith01
Copy link

Minimal reproducible example:

ggplot() + geom_quasirandom(aes(x, y), data.frame(x="A", y=c(1, 0.9999999999999)), groupOnX = TRUE)
Warning messages:
1: In regularize.values(x, y, ties, missing(ties), na.rm = na.rm) :
  collapsing to unique 'x' values
2: In regularize.values(x, y, ties, missing(ties), na.rm = na.rm) :
  collapsing to unique 'x' values
3: In regularize.values(x, y, ties, missing(ties), na.rm = na.rm) :
  collapsing to unique 'x' values

Might be related to tidyverse/ggplot2#4455 (comment) where geom_violin would produce the same error.

I was able to solve it in this case by rounding the y values:

ggplot() + geom_quasirandom(aes(x, y), data.frame(x="A", y=round(c(1, 0.9999999999999), 12)), groupOnX = TRUE)

geom_beeswarm also has trouble handling values like this. The following silently drops one of the data points:

ggplot() + geom_beeswarm(aes(x, y), data.frame(x="A", y=c(1, 0.9999999999999)), groupOnX = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant