powered by
Produce a box-and-whisker plot for clustering results.
boxclus(d, clusters, legendpos = "topleft", ...)
The dataset (matrix or data.frame).
matrix
data.frame
Cluster labels of the training set (vector or factor).
vector
factor
Position of the legend
Other parameters.
boxplot
# NOT RUN { require (datasets) data (iris) km = KMEANS (iris [, -5], k = 3) boxclus (iris [, -5], km$cluster) # }
Run the code above in your browser using DataLab