plotclus {fdm2id} | R Documentation |
Generic Plot Method for Clustering
Description
Plot a clustering according to various parameters
Usage
plotclus(
clustering,
d = NULL,
type = c("scatter", "boxplot", "tree", "height", "mapping", "words"),
centers = FALSE,
k = NULL,
tailsize = 9,
...
)
Arguments
clustering |
The clustering to be plotted. |
d |
The dataset ( |
type |
The type of plot. |
centers |
Indicates whether or not cluster centers should be plotted (used only in scatter plots). |
k |
Number of clusters (used only for hierarchical methods). If not specified an "optimal" value is determined. |
tailsize |
Number of clusters showned (used only for height plots). |
... |
Other parameters. |
See Also
treeplot
, scatterplot
, plot.som
, boxclus
Examples
## Not run:
require (datasets)
data (iris)
ward = HCA (iris [, -5], method = "ward", k = 3)
plotclus (ward, iris [, -5], type = "scatter") # Scatter plot
plotclus (ward, iris [, -5], type = "boxplot") # Boxplot
plotclus (ward, iris [, -5], type = "tree") # Dendrogram
plotclus (ward, iris [, -5], type = "height") # Distances between merging clusters
som = SOM (iris [, -5], xdim = 5, ydim = 5, post = "ward", k = 3)
plotclus (som, iris [, -5], type = "scatter") # Scatter plot for SOM
plotclus (som, iris [, -5], type = "mapping") # Kohonen map
## End(Not run)
[Package fdm2id version 0.9.9 Index]