Skip to contents

plot method for objects of class "simplexfit". Produces influence index plots and/or a half-normal plot with simulated envelope.

Usage

# S3 method for class 'simplexfit'
plot(
  x,
  which = c("influence", "envelope"),
  ask = length(which) > 1 && dev.interactive(),
  ...
)

Arguments

x

An object of class "simplexfit" returned by simplex_fit.

which

Character vector indicating which plots to produce: "influence" for the influence index plot (see plot_influence), and/or "envelope" for the half-normal plot with simulated envelope (see plot_envelope). Several can be requested at once.

ask

Logical; if TRUE and more than one plot is requested, the user is asked before each new plot. Defaults to length(which) > 1 && dev.interactive().

...

Further arguments passed to plot_influence or plot_envelope.

Value

The object x, invisibly.

Examples

data(ammonia)
X <- cbind(1, ammonia$corr_ar, ammonia$temp_agua,
           ammonia$corr_ar * ammonia$temp_agua)
Z <- cbind(1, ammonia$temp_agua,
           ammonia$corr_ar * ammonia$temp_agua)
fit <- simplex_fit(ammonia$perda, X, Z)
plot(fit, which = "influence")