Makes a plot with class predictions for a classification model.
# S3 method for classmodel
plotPredictions(
obj,
res.name = NULL,
nc = seq_len(obj$nclasses),
ncomp = NULL,
main = NULL,
...
)
a classification model (object of class simca
, plsda
, etc.). if NULL
value
is specified, the result will be selected automatically by checking the nearest available from
test, cv and calibration results.
name of result object to make the plot for ("test", "cv" or "cal").
vector with class numbers to make the plot for.
what number of components to make the plot for.
title of the plot (if NULL will be set automatically)
most of the graphical parameters from mdaplotg
function can be used.
See examples in description of plsda
, simca
or simcam
.