plotCooman.simcam | R Documentation |
Shows a Cooman's plot for a pair of SIMCA models
## 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,
...
)
obj |
a SIMCAM model (object of class |
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 |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.