hrbrmstr / ggalt

:earth_americas: Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
https://cran.r-project.org/web/packages/ggalt/vignettes/ggalt_examples.html
Other
661 stars 99 forks source link

`geom_bkde2d` fails with `"argument 'z.range' is missing"` warning #76

Open IndrajeetPatil opened 3 years ago

IndrajeetPatil commented 3 years ago

I can't reproduce the output shown in {ggalt} vignette.

Expected:

Screenshot 2021-08-15 at 08 19 58

Observed:

library(ggplot2)
library(ggalt)

m <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
  geom_point() +
  xlim(0.5, 6) +
  ylim(40, 110)

m + geom_bkde2d(bandwidth = c(0.5, 4))

Created on 2021-08-15 by the reprex package (v2.0.1)