Learn R Programming

ggtern (version 1.0.5.0)

stat_density2d: 2d density estimation - (ggtern version)

Description

Patched version of the 2d density estimation.

Usage

stat_density2d(mapping = NULL, data = NULL, geom = "auto",
  position = "identity", na.rm = FALSE, contour = TRUE, n = 100, ...)

Arguments

mapping
The aesthetic mapping, usually constructed with aes or aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.
data
A layer specific dataset - only needed if you want to override the plot defaults.
geom
The geometric object to use display the data
position
The position adjustment to use for overlappling points on this layer
na.rm
If FALSE (the default), removes missing values with a warning. If TRUE silently removes missing values.
contour
If TRUE, contour the results of the 2d density estimation
n
number of grid points in each direction
...
other arguments passed on to kde2d

See Also

geom_density2d