Makes a plot with classification performance parameters vs. model complexity (e.g. number of components) for classification results.
# S3 method for classres
plotPerformance(obj, nc = NULL, param = "all",
type = "h", legend = NULL, main = NULL, xlab = "Components",
ylab = "", ylim = c(0, 1.1), ...)
classification results (object of class plsdares
, simcamres
, etc.).
if there are several classes, which class to make the plot for (NULL - summary for all classes).
which performance parameter to make the plot for ('sensitivity'
, 'specificity'
,
'misclassified'
, 'all'
).
type of the plot
vector with legend items
main title for the plot
label for x axis
label for y axis
vector with two values - limits for y axis
most of the graphical parameters from mdaplot
function can be used.