plot.upclassfit: Plot for upclassfit

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plot.upclassfit.R

Description

plot method for class "upclassfit".

Usage

1
2
## S3 method for class 'upclassfit'
plot(x, ...)

Arguments

x

an upclassfit object.

...

further graphical parameters.

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.

Author(s)

Niamh Russell

See Also

upclassify, noupclassify

Examples

1
2
3
4
5
6
7
8
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)

upclass documentation built on May 29, 2017, 5:12 p.m.