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 = 1,
type = "b",
param = c("sensitivity", "specificity", "misclassified"),
labels = "values",
ylab = "",
ylim = c(0, 1.1),
xticks = seq_len(obj$ncomp),
show.plot = TRUE,
...
)
classification results (object of class plsdares
, simcamres
, etc.).
if there are several classes, which class to make the plot for.
type of the plot
which performance parameter to make the plot for (can be a vector with several values).
what to show as labels for plot objects.
label for y axis
vector with two values - limits for y axis
vector with x-axis tick values
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.