ggalt
ggalt copied to clipboard
`geom_bkde2d` fails with `"argument 'z.range' is missing"` warning
I can't reproduce the output shown in {ggalt}
vignette.
Expected:
![Screenshot 2021-08-15 at 08 19 58](https://user-images.githubusercontent.com/11330453/129469189-ee1ba932-0f82-4c3c-ae57-6719357b27fe.png)
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)