plot.som: Plot function for som-class

plot.somR Documentation

Plot function for som-class

Description

Plot Kohonen's self-organizing maps.

Usage

## S3 method for class 'som'
plot(x, type = c("scatter", "mapping"), col = NULL, labels = FALSE, ...)

Arguments

x

The Kohonen's map (object of class som-class).

type

The type of plot.

col

Color of the data points

labels

A vector of character strings to be printed instead of points in the plot.

...

Other parameters.

See Also

SOM, som-class

Examples

require (datasets)
data (iris)
som = SOM (iris [, -5], xdim = 5, ydim = 5, post = "ward", k = 3)
plot (som) # Scatter plot (default)
plot (som, type = "mapping") # Kohonen map

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

Related to plot.som in fdm2id...