panel.ternaryplot.response: Response Panels for Ternary Plots

View source: R/ternaryplot.R

panel.ternaryplot.responseR Documentation

Response Panels for Ternary Plots

Description

Response Panels for Ternary Plots

Usage

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.


tactile documentation built on May 31, 2023, 9:47 p.m.