Learn R Programming

mdatools (version 0.9.4)

plotResiduals.pcares: Residuals plot for PCA results

Description

Shows a plot with T2 vs Q values for data objects.

Usage

# S3 method for pcares
plotResiduals(obj, ncomp = NULL, main = NULL,
  xlab = NULL, ylab = NULL, show.labels = F, show.limits = T,
  norm = F, xlim = NULL, ylim = NULL, lim.col = c("#333333",
  "#333333"), lim.lwd = c(1, 1), lim.lty = c(2, 3), ...)

Arguments

obj

object of ldecomp class.

ncomp

what number of components to show the plot for (if NULL, model selected value will be used).

main

main title for the plot

xlab

label for x axis

ylab

label for y axis

show.labels

logical, show or not labels for the plot objects

show.limits

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

norm

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

xlim

limits for x-axis

ylim

limits for y-axis

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

...

most of graphical parameters from mdaplot function can be used.