Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotclus

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

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

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.