geom_density(mapping = NULL, data = NULL, stat = "density", position = "identity", 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.layer. This can include aesthetics whose
values you want to set, not map. See layer
for more details.A smooth density estimate calculated by
stat_density.
geom_density understands the following aesthetics (required aesthetics are in bold):
x
y
alpha
colour
fill
linetype
size
weight
# See stat_density for examples