eclarke / ggbeeswarm

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

Error when upper or lower bounds in ylim() are set to NA #53

Closed smvanliempd closed 1 year ago

smvanliempd commented 4 years ago

This code

df <- data.frame(group = "G1", val = abs(rnorm(20)))
ggplot(df, aes(x = group, y = val))+
  geom_beeswarm() +
  ylim(0,NA)

gives the following error

Error in if (limDiff == 0) limDiff <- 1 : missing value where TRUE/FALSE needed

This is also the case for ylim(NA,x).

eclarke commented 1 year ago

fixed in #60