Performance plot for classification results
Makes a plot with classification performance parameters vs. model complexity (e.g. number of components) for classification results.
## S3 method for class 'classres' plotPerformance( obj, nc = 1, type = "b", param = c("sensitivity", "specificity", "misclassified"), labels = "values", ylab = "", ylim = c(0, 1.1), xticks = seq_len(obj$ncomp), show.plot = TRUE, ... )
obj
: classification results (object of class plsdares
, simcamres
, etc.).nc
: if there are several classes, which class to make the plot for.type
: type of the plotparam
: which performance parameter to make the plot for (can be a vector with several values).labels
: what to show as labels for plot objects.ylab
: label for y axisylim
: vector with two values - limits for y axisxticks
: vector with x-axis tick valuesshow.plot
: logical, shall plot be created or just plot series object is needed...
: most of the graphical parameters from mdaplot
function can be used.See examples in description of plsdares
, simcamres
, etc.