Closed mcunni23 closed 1 year ago
I'm observing that this color reversal also happens when the second layer is geom_sf()
instead geom_sf_pattern()
:
counties_plot + geom_sf(data = leg, aes(fill = ALAND_cat),
color = "black", alpha = 0, show.legend = FALSE)
Closing since this doesn't seem to be a "bug" in {ggpattern}
. Have you tried using scale_fill_manual()
to manually fix the colors?
Bug description
When I add a patterned layer to a ggplot choropleth, the color scheme of the choropleth is getting reversed.
Minimal, reproducible example
Session info
Please enter here the results of
xfun::session_info("ggpattern")