-
Notifications
You must be signed in to change notification settings - Fork 24
guide_colorsteps() doesn't work as expected #188
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
Comments
library(ggplot2)
levels <- pretty(range(volcano))
volcano2 <- reshape2::melt(volcano) |>
transform(value_discrete = cut(value,
breaks = levels,
ordered_result = TRUE))
ggplot(volcano2, aes(Var1, Var2)) +
geom_raster(aes(fill = value_discrete)) ggplot(volcano2, aes(Var1, Var2)) +
geom_raster(aes(fill = value_discrete)) +
guides(fill = guide_colorsteps()) Created on 2024-03-20 with reprex v2.0.2 I opened an issue on their repo, which you can follow here: tidyverse/ggplot2#5786 |
BTW, this has been fixed in the development version of ggplot2 |
Sorry, I missed the fact is was a ggplot2 function and not a metR function. Sorry for the annoyance |
Trying to reproduce the example of discretised_scale(), it fails to produce the correct result:
ggplot2_3.5.0
metR_0.15.0
The text was updated successfully, but these errors were encountered: