Panel Function for Ternary Plots
panel.ternaryplot(x, y, z, subscripts, response = NULL, density = FALSE,
region = density || !is.null(response), contour = density ||
!is.null(response), labels = !is.null(response), points = TRUE,
grid = TRUE, density_breaks = NULL, xlab, ylab, zlab, xlab.default,
ylab.default, zlab.default, ...)
Plots a layer inside a panel of a lattice
plot.
Numeric vector
Numeric vector
Numeric vector
An optional response variable
Compute two-dimensional density estimates via MASS::kde2d()
.
Fill density or response estimates with a color gradient.
Draw contour lines for density and response estimates.
Label contour lines.
Draw points (via panel.ternaryplot.xyplot()
).
Draw a reference grid.
Breaks for the density plot if used (see
panel.ternaryplot.density()
).
X axis label (the left dimension)
Y axis label (the right dimension)
Z axis label (the top dimension)
Internal argument
Internal argument
Internal argument
Arguments passed down to subsequent panel functions.
The building blocks of this function are available as the separate
panel functions panel.ternaryplot.xyplot()
, panel.ternaryplot.grid()
,
panel.ternaryplot.scales()
, panel.ternaryplot.clip()
,
panel.ternaryplot.response()
, and panel.ternaryplot.density()
in case
the user would like to get complete control of the customization.