plotPerformance.classres function

Performance plot for classification results

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, ... )

Arguments

  • 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 plot
  • param: 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 axis
  • ylim: vector with two values - limits for y axis
  • xticks: vector with x-axis tick values
  • show.plot: logical, shall plot be created or just plot series object is needed
  • ...: most of the graphical parameters from mdaplot function can be used.

Details

See examples in description of plsdares, simcamres, etc.

  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19