componentPlane: Component Planes

Description Usage Arguments Author(s) References See Also Examples

Description

Plot a component plane for a Self-Organising Map. The prior structure is represented by a regular grid of hexagons or squares which are colored according to the value of the chosen coordinate of the associated prototype.

Usage

1
componentPlane(som, dim = 1, ...)

Arguments

som

an object of class "somnum"

dim

the coordinate to display

...

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
16
data(iris)
# scaling
data <- scale(iris[1:4])

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

# choose a good SOM
som <- som.tune(data,sg)$best.som

# display the component planes
spar <- par(mfrow=c(2,2))
for(i in 1:ncol(data)) {
    componentPlane(som,i)
}
par(spar)

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