Two-Dimensional Density Estimation for Ternary Plots
panel.ternaryplot.density(x, y, z, subscripts, n = 100, region = TRUE,
contour = FALSE, labels = isTRUE(contour), density_breaks = NULL, ...)Plots a layer inside a panel of a lattice plot.
Numeric vector
Numeric vector
Numeric vector
Number of grid points in each direction. Can be scalar or a length-2 integer vector.
Fill density or response estimates with a color gradient.
Draw contour lines for density and response estimates.
Label contour lines.
Breaks for the density plot if used (see
panel.ternaryplot.density()).
Arguments that will be passed on to lattice::panel.lines(),
lattice::panel.polygon(), and lattice::panel.text().