Learn R Programming

fdm2id (version 0.9.9)

boxclus: Clustering Box Plots

Description

Produce a box-and-whisker plot for clustering results.

Usage

boxclus(d, clusters, legendpos = "topleft", ...)

Arguments

d

The dataset (matrix or data.frame).

clusters

Cluster labels of the training set (vector or factor).

legendpos

Position of the legend

...

Other parameters.

See Also

Examples

Run this code
require (datasets)
data (iris)
km = KMEANS (iris [, -5], k = 3)
boxclus (iris [, -5], km$cluster)

Run the code above in your browser using DataLab