View source: R/plot.adpclust.R
plot.adpclust | R Documentation |
Plot the f vs. delta plot with selected centroids.
## S3 method for class 'adpclust' plot(x, cols = "default", to.plot = c("cluster.sil", "fd"), ...)
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. |
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.