Learn R Programming

mdatools (version 0.7.0)

plotPredictions.classmodel: Predictions plot for classification model

Description

Makes a plot with class predictions for a classification model.

Usage

"plotPredictions"(obj, res = NULL, nc = NULL, 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
which result to make the plot for ('calres', 'cvres' or 'testres').
nc
if there are several classes, which class to make the plot for (NULL - for all).
ncomp
what number of components to make the plot for (NULL - for selected in the model).
main
main title for the plot
...
most of the graphical parameters from mdaplotg function can be used.

Details

See examples in description of plsda, simca or simcam.