somregs {somspace}R Documentation

Classify SOM into regions

Description

somregs applies hierarchical cluster analysis to the Self-Organizing Map to form regions with homogeneous characteristics (classification scheme).

Usage

somregs(x, nregions, ...)

Arguments

x

A somsp object.

nregions

The maximum number of classifications schemes to be determined starting from 2.

...

Other arguments passed to methods from hclust function which is used to determine the regions.

Details

nregions must be at least two, i.e., a classification scheme with two regions, and smaller than the number of SOM nodes. In the latter case, each SOM node corresponds to a region. The resulting regs object can be plotted by plot and plot_ts. If plot is used, three additional arguments are needed; a set with the classification schemes that will be ploted, number of rows and number of columns of the plotted panels. plot_ts plots all the time series of a given classification scheme.

Value

A regs object, which contains:

See Also

somsp

somspa

Examples


dummy <- owda[Time <= 1600]
inp_som <- sominp(dummy)
my_som <- somspa(inp_som, rlen = 100, grid = somgrid(4, 4, "hexagonal"))
my_regions <- somregs(my_som, nregions = 9) 
plot(my_regions, regions = c(2, 4, 6, 8), nrow = 2, ncol = 2) 
plot_ts(my_regions, n = 4)


[Package somspace version 1.2.4 Index]