plotDistances.ddsimca: Show with distance values (score, orthogonal or full) vs...

View source: R/ddsimca.R

plotDistances.ddsimcaR Documentation

Show with distance values (score, orthogonal or full) vs object indices for calibration and PV-set results.

Description

Show with distance values (score, orthogonal or full) vs object indices for calibration and PV-set results.

Usage

## S3 method for class 'ddsimca'
plotDistances(
  obj,
  res = "both",
  ncomp = obj$ncomp.selected,
  limType = "classic",
  distance = "h",
  log = FALSE,
  lim.lty = c(2, 3),
  lim.col = c("darkgray", "darkgray"),
  lim.lwd = c(1, 1),
  ylim = NULL,
  xlim = NULL,
  ...
)

Arguments

obj

DD-SIMCA model (object of class ddsimca)

res

name of the results (can be 'cal', 'pv', 'both', or 'diff', in the latter case shows difference of the distance values between the training and the PV-set).

ncomp

number of components to show the plot for.

limType

limit type to show the plot for ('classic' or 'robust')

distance

which distance to show ("h" for score, "q" for orthogonal or "f" for full distance).

log

logical, apply log transformation or not.

lim.lty

vector with two values - types of the lines showing critical limits (extreme, outlier).

lim.col

vector with two values - colors of the lines showing critical limits (extreme, outlier).

lim.lwd

vector with two values - thickness of the lines showing critical limits (extreme, outlier).

ylim

limits for y-axis, if NULL will be estimated automatically.

xlim

limits for x-axis, if NULL will be estimated automatically.

...

other parameters compatible with plotDistances.ddsimcares method.


mdatools documentation built on March 6, 2026, 5:08 p.m.