Response Panels for Ternary Plots

panel.ternaryplot.response(x, y, z, subscripts, response, region = TRUE,
  contour = TRUE, labels = isTRUE(contour), fun = c("glm", "lm"),
  formula = response ~ poly(x, y), ...)

Arguments

x

Numeric vector

y

Numeric vector

z

Numeric vector

subscripts

See lattice::panel.xyplot().

response

An optional response variable

region

Fill density or response estimates with a color gradient.

contour

Draw contour lines for density and response estimates.

labels

Label contour lines.

fun

Function to apply to the response variable.

formula

Formula for the function.

...

Arguments passed on to lattice::panel.lines(), lattice::panel.polygon(), lattice::panel.text().

Value

Plots a layer inside a panel of a lattice plot.