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).
# S3 method for classres
plotProbabilities(obj, ncomp = obj$ncomp.selected,
nc = 1, type = "h", xlab = "Objects", ylab = "Probability",
main = NULL, ylim = c(0, 1.1), show.lines = c(NA, 0.5), ...)
classification results (e.g. object of class simcamres
).
number of components to use the probabilities for.
if there are several classes, which class to make the plot for.
type of the plot
label for x axis
label for y axis
main plot title
vector with limits for y-axis
shows a horizontal line at p = 0.5
most of the graphical parameters from mdaplot
function can be used.