plotPerformance.classmodel function

Performance plot for classification model

Performance plot for classification model

Makes a plot with sensitivity values vs. model complexity (e.g. number of components)

## S3 method for class 'classmodel' plotPerformance( obj, nc = 1, param = "misclassified", type = "b", labels = "values", ylab = "", ylim = c(0, 1.15), xticks = seq_len(dim(obj$res$cal$c.pred)[2]), res = obj$res, ... )

Arguments

  • obj: classification model (object of class plsda, simca, etc.).
  • nc: class number to make the plot for.
  • param: which parameter to make the plot for ("specificity", "sensitivity", or "misclassified")
  • type: type of the plot
  • 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 tick values for x-axis
  • res: list with result objects to show the plot for
  • ...: most of the graphical parameters from mdaplotg function can be used.
  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19