-
Notifications
You must be signed in to change notification settings - Fork 94
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
alpha in geom_stars() breaks na.value in scale_fill() #445
Comments
Thanks! Seems a # library(tibble)
ggplot() + geom_raster(data = as_tibble(x), aes(x = x, y = y, fill = L7_ETMs.tif), alpha = 0.5) +
scale_fill_viridis_c(na.value = "transparent") |
Thank you, @edzer. An interpretation and a functional solution have been provided by @thomasp85 at tidyverse/ggplot2#4630. |
Closed too soon. When trying to translate that solution (for
I can modify the reprex above or post a new one here as soon as I can (not immediately), if that's helpful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this is a value in
ggplot2
, I'm happy to file it there. Thanks for a wonderful package!Summary
✅ Rendering finite values in a semi-transparent manner works by itself, via
alpha = I(...)
ingeom_stars()
✅ Rendering
NA
s as fully transparent also works by itself, viana.value = "transparent"
in, e.g.,scale_fill_viridis_c()
❌ Combining the two does not work; the former seems to "override" or obviate the latter
Smallish reprex
The text was updated successfully, but these errors were encountered: