geom_density2d(mapping = NULL, data = NULL,
stat = "density2d", position = "identity",
lineend = "butt", linejoin = "round", linemitre = 1,
na.rm = FALSE, ...)
aes
or aes_string
. Only
needs to be set at the layer level if you are overriding
the plot defaults.FALSE
(the default), removes
missing values with a warning. If TRUE
silently
removes missing values.geom_contour
for contour drawing geom,
stat_sum
for another way of dealing with
overplotting# See stat_density2d for examples
Run the code above in your browser using DataLab