Closed mchibok closed 5 years ago
Hi! I think this should be fixed with https://github.com/eliocamp/ggnewscale/issues/16, but I might be wrong on that. Are you using the latest development version? If not, try updating it and see if it works.
Otherwise, can you get a minimum reproducible example so I can investigate further? Since I don't have the data for your polygons I can't run those :).
Hey, Just updated the version from 0.3.0 to 0.4.0.9 and it works! Thanks for your help and the package.
I'm trying to plot a spatial heatmap from various x y points that are separed in 2 categories. I wish to plot both categories with
stat_density_2d
in different colors (green and red).However, whenever I add a
new_scale_fill()
, the background color of previously plotted geom change colors.For exemple, regular plot:
gives this:
But when I try to add a scale to plot another stat_density, this is what I get:
The various geom_polygon data come from shapefiles. I don't know if that could be the problem. Not sure if it's a bug or something I'm not doing right.
Thanks for your help!