stat_density2d(aes(fill = ..level..), alpha = .5, h = .02, n = 300,
geom = "polygon", data = accident_before) +
scale_fill_gradient(low = "green", high = "red", guide = "colorbar",
name = "Level", breaks=seq(-40,80,30), limits=c(-40,80))
This is the code I am using but the output of this is a map that plots the city in grey color. What do low and high specify here? How should I understand which dataset is considered to output the map in what color.