plotCooman.simcam: Cooman's plot for SIMCAM model

View source: R/simcam.R

plotCooman.simcamR Documentation

Cooman's plot for SIMCAM model

Description

Shows a Cooman's plot for a pair of SIMCA models

Usage

## S3 method for class 'simcam'
plotCooman(
  obj,
  nc = c(1, 2),
  res = list(cal = obj$res[["cal"]]),
  groupby = res[[1]]$c.ref,
  main = "Cooman's plot",
  show.limits = TRUE,
  ...
)

Arguments

obj

a SIMCAM model (object of class simcam)

nc

vector with two values - classes (SIMCA models) to show the plot for

res

list with results to show the plot for

groupby

factor to use for grouping points on the plot

main

title of the plot

show.limits

logical, show or not critical limits

...

other plot parameters (see mdaplotg for details)

Details

Cooman's plot shows squared orthogonal distance from data points to two selected SIMCA models as well as critical limits for the distance (optional). In case if critical limits must be shown they are computed using chi-square distribution regardless which type of limits is employed for classification.

If only one result object is provided (e.g. results for calibration set or new predictions), then the points can be color grouped using 'groupby' parameter (by default reference class values are used to make the groups). In case of multiple result objects, the points are color grouped according to the objects (e.g. calibration set and test set).


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.