plotclus: Generic Plot Method for Clustering

plotclusR 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 (matrix or data.frame), mandatory for some of the graphics.

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)

fdm2id documentation built on July 9, 2023, 6:05 p.m.

Related to plotclus in fdm2id...