plotPredictions.classmodel: Predictions plot for classification model

View source: R/classmodel.R

plotPredictions.classmodelR Documentation

Predictions plot for classification model

Description

Makes a plot with class predictions for a classification model.

Usage

## S3 method for class 'classmodel'
plotPredictions(
  obj,
  res.name = NULL,
  nc = seq_len(obj$nclasses),
  ncomp = NULL,
  main = NULL,
  ...
)

Arguments

obj

a classification model (object of class simca, plsda, etc.). if NULL value is specified, the result will be selected automatically by checking the nearest available from test, cv and calibration results.

res.name

name of result object to make the plot for ("test", "cv" or "cal").

nc

vector with class numbers to make the plot for.

ncomp

what number of components to make the plot for.

main

title of the plot (if NULL will be set automatically)

...

most of the graphical parameters from mdaplotg function can be used.

Details

See examples in description of plsda, simca or simcam.


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