Learn R Programming

mdatools (version 0.9.1)

plotResiduals.simcares: Residuals plot for SIMCA results

Description

Shows a plot with Q vs. T2 residuals for SIMCA results

Usage

# S3 method for simcares
plotResiduals(obj, ncomp = NULL, main = NULL,
  xlab = NULL, ylab = NULL, norm = F, show.limits = T, legend = NULL,
  lim.col = c("#c0a0a0", "#906060"), lim.lwd = c(1, 1), lim.lty = c(2, 3),
  ...)

Arguments

obj

SIMCA results (object of class simcares)

ncomp

which principal components to show the plot for

main

main plot title

xlab

label for x axis

ylab

label for y axis

norm

logical, show normalized Q vs T2 (norm = T) values or original ones (norm = F)

show.limits

logical, show or not lines with statistical limits for the residuals

legend

vector with legend items

lim.col

vector with two values - line color for extreme and outlier borders

lim.lwd

vector with two values - line width for extreme and outlier borders

lim.lty

vector with two values - line type for extreme and outlier borders

...

other plot parameters (see mdaplot for details)

Details

See examples in help for simcares function.