-
Notifications
You must be signed in to change notification settings - Fork 2k
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
layer
does not work as expected for creating a geom_density_2d
plot
#5571
Comments
layer
does not work as expected for geom_density_2d
layer
does not work as expected for creating a geom_density_2d
plot
It needs ggplot() +
layer(
geom = ggplot2::GeomDensity2d,
stat = ggplot2::StatDensity2d,
data = faithful,
mapping = aes(x = eruptions, y = waiting),
position = ggplot2::PositionIdentity,
params = list(contour = TRUE)
) |
Could Likewise, |
I think that should be possible. Do you happen to have any interest in preparing a PR for this? |
I'm not sure how to do this, sorry @teunbrand. I'm not familiar with how ggproto works |
No worries, that is totally fine! We'll get around to this at some point I think. I'm not saying you should have a look at these, but if you happen to be curious, these are some starting materials to peruse: |
Created on 2023-12-08 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: