plotPerformance.classmodel: Performance plot for classification model

View source: R/classmodel.R

plotPerformance.classmodelR Documentation

Performance plot for classification model

Description

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

Usage

## 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.


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.