scatterplot {fdm2id} | R Documentation |
Clustering Scatter Plots
Description
Produce a scatter plot for clustering results. If the dataset has more than two dimensions, the scatter plot will show the two first PCA axes.
Usage
scatterplot(
d,
clusters,
centers = NULL,
labels = FALSE,
ellipses = FALSE,
legend = c("auto1", "auto2"),
...
)
Arguments
d |
The dataset ( |
clusters |
Cluster labels of the training set ( |
centers |
Coordinates of the cluster centers. |
labels |
Indicates whether or not labels (row names) should be showned on the plot. |
ellipses |
Indicates whether or not ellipses should be drawned around clusters. |
legend |
Indicates where the legend is placed on the graphics. |
... |
Other parameters. |
Examples
require (datasets)
data (iris)
km = KMEANS (iris [, -5], k = 3)
scatterplot (iris [, -5], km$cluster)
[Package fdm2id version 0.9.9 Index]