Learn R Programming

mdatools (version 0.9.1)

plotPredictions.classres: Prediction plot for classification results

Description

Makes a plot with predicted class values for classification results.

Usage

# S3 method for classres
plotPredictions(obj, nc = NULL, ncomp = NULL,
  type = "p", main = NULL, ylab = "", ...)

Arguments

obj

classification results (object of class plsdares, simcamres, etc.).

nc

if there are several classes, which class to make the plot for (NULL - summary for all classes).

ncomp

which number of components to make the plot for (one value, if NULL - model selected number will be used). This parameter shal not be used for multiclass models or results as predictions in this case are only for optimal number of components

type

type of the plot

main

main title for the plot

ylab

label for y axis

...

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

Details

See examples in description of plsdares, simcamres, etc.