plotProbabilities.classres {mdatools}R Documentation

Plot for class belonging probability

Description

Makes a plot with class belonging probabilities for each object of the classification results. Works only with classification methods, which compute this probability (e.g. SIMCA).

Usage

## S3 method for class 'classres'
plotProbabilities(
  obj,
  ncomp = obj$ncomp.selected,
  nc = 1,
  type = "h",
  ylim = c(0, 1.1),
  show.lines = c(NA, 0.5),
  ...
)

Arguments

obj

classification results (e.g. object of class simcamres).

ncomp

number of components to use the probabilities for.

nc

if there are several classes, which class to make the plot for.

type

type of the plot

ylim

vector with limits for y-axis

show.lines

shows a horizontal line at p = 0.5

...

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


[Package mdatools version 0.14.1 Index]