Learn R Programming

mdatools (version 0.9.1)

plotPerformance.classres: Performance plot for classification results

Description

Makes a plot with classification performance parameters vs. model complexity (e.g. number of components) for classification results.

Usage

# S3 method for classres
plotPerformance(obj, nc = NULL, param = "all",
  type = "h", legend = NULL, main = NULL, xlab = "Components",
  ylab = "", ylim = c(0, 1.1), ...)

Arguments

obj

classification results (object of class plsdares, simcamres, etc.).

nc

if there are several classes, which class to make the plot for (NULL - summary for all classes).

param

which performance parameter to make the plot for ('sensitivity', 'specificity', 'misclassified', 'all').

type

type of the plot

legend

vector with legend items

main

main title for the plot

xlab

label for x axis

ylab

label for y axis

ylim

vector with two values - limits for y axis

...

most of the graphical parameters from mdaplot function can be used.

Details

See examples in description of plsdares, simcamres, etc.