I'm trying to make a 2d density plot + contour of a distribution with more than a million points, where the high density is concentrated only in part of the distribution.
I was able to obtain contours by using
ggplot(df, aes(x=var1, y=var2)) + geom_density_2d()
However, I get contours only for the high density points but not for the entire distribution, including the low-density area.
Any help would be much appreciated!