Makes a plot with class predictions for a classification model.
## S3 method for class 'classmodel'plotPredictions( obj, res.name =NULL, nc = seq_len(obj$nclasses), ncomp =NULL, main =NULL,...)
Arguments
obj: 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.
res.name: name of result object to make the plot for ("test", "cv" or "cal").
nc: vector with class numbers to make the plot for.
ncomp: what number of components to make the plot for.
main: title of the plot (if NULL will be set automatically)
...: most of the graphical parameters from mdaplotg function can be used.
Details
See examples in description of plsda, simca or simcam.