Learn R Programming

ADPclust (version 0.7)

plot.adpclust: Visualize the result of adpclust()

Description

Plot the f vs. delta plot with selected centroids.

Usage

"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

Run this code
## 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

Run the code above in your browser using DataLab