hitMap: Clustering Hit Map

Description Usage Arguments Author(s) References See Also Examples

Description

Plot a hit map for the clustering performed by a Self-Organising Map. The prior structure is represented by a regular grid of hexagons or squares. The surface of each element is proportional to the square root of the number of observations assigned to the corresponding unit in the SOM.

Usage

1
hitMap(som,border=NA,with.grid=TRUE, ...)

Arguments

som

an object of class "som"

border

the color to draw the border. The default, NA, omits border. Use border = NULL to use par("fg"). See also polygon and rect

with.grid

logical. If TRUE, the hit map includes two cells for each unit: an enclosing cell of standard size (see plot.somgrid) and an internal cell whose surface size encodes the cluster size. If FALSE, the internal cell only is drawn

...

additional parameters transmitted to the low level plot function plot.somgrid

Author(s)

Fabrice Rossi

References

Vesanto, J. (2002) Data Exploration Process Based on the Self–Organizing Map, PhD thesis, Helsinki University of Technology, Espoo (Finland), Acta Polytechnica Scandinavica, Mathematics and Computing Series No. 115.

See Also

plot.somgrid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(iris)
# scaling
data <- scale(iris[1:4])

# a small hexagonal grid
sg <- somgrid(xdim=7,ydim=7,topo="hex")

# fit the SOM
som <- batchsom(data,sg)

# display the hit map
hitMap(som)

# with another color and borders with default color
hitMap(som,col="blue",border=NULL)

yasomi documentation built on May 2, 2019, 5:59 p.m.