Relative Content

Tag Archive for ggplot2heatmap

stat_density2d_filled throwing error when used with scale_fill_gradient

I am trying to produce a heat map based on point locations using stat_density2d_filled. Using stat_density2d results in ugly artifacts. stat_density2d works well with scale_fill_gradient, but when trying the same things with stat_density2d_filled I get an error: “Error: Discrete value supplied to continuous scale”.