Clustering Scatter Plots
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.
scatterplot( d, clusters, centers = NULL, labels = FALSE, ellipses = FALSE, legend = c("auto1", "auto2"), ... )
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. |
require (datasets) data (iris) km = KMEANS (iris [, -5], k = 3) scatterplot (iris [, -5], km$cluster)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.