plot.adpclust {ADPclust} | R Documentation |
Visualize the result of adpclust()
Description
Plot the f vs. delta plot with selected centroids.
Usage
## S3 method for class 'adpclust'
plot(x, cols = "default", to.plot = c("cluster.sil",
"fd"), ...)
Arguments
x |
an object of class "adpclust". Result of adpclust(). |
cols |
vector of colors used to distinguish different clusters. Recycled if necessary. |
to.plot |
string vector that indicate which plot(s) to show. The two options are 'cluster.sil' (nclust vs. silhouette) and 'fd' (f vs. delta). |
... |
Not used. |
Examples
## Load a data set with 3 clusters
data(clust3)
## Automatically select cluster centroids
ans <- adpclust(clust3, centroids = "auto")
plot(ans)
plot(ans, to.plot = "fd")
plot(ans, to.plot = "cluster.sil")
plot(ans, to.plot = c("cluster.sil", "fd")) #Default
[Package ADPclust version 0.7 Index]