Shows a Cooman's plot for a pair of SIMCA models
# S3 method for 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,
...
)
a SIMCAM model (object of class simcam
)
vector with two values - classes (SIMCA models) to show the plot for
list with results to show the plot for
factor to use for grouping points on the plot
title of the plot
logical, show or not critical limits
other plot parameters (see mdaplotg
for 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).