plotPerformance.classres: Performance plot for classification results

View source: R/classres.R

plotPerformance.classresR Documentation

Performance plot for classification results

Description

Makes a plot with classification performance parameters vs. model complexity (e.g. number of components) for classification results.

Usage

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


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.