Learn R Programming

upclass (version 2.0)

plot.upclassfit: Plot for upclassfit

Description

plot method for class "upclassfit".

Usage

"plot"(x, ...)

Arguments

x
an upclassfit object.
...

Details

It produces the a posteriori probabilities of each observation belonging to each group, for the best model selected by either upclassify or noupclassify. Suspect classifications may be easier to identify as they will appear more to the centre between the upper and lower margins of the plot.

See Also

upclassify, noupclassify

Examples

Run this code
data(wine, package = "gclus")
X <- as.matrix(wine[, -1])
cl <- unclass(wine[, 1])
indtrain <- sort(sample(1:178, 120))
indtest <- setdiff(1:178, indtrain)

fitup <- upclassify(X[indtrain,], cl[indtrain], X[indtest,], cl[indtest])
plot(fitup)

Run the code above in your browser using DataLab