somspa {somspace}R Documentation

Spatial SOM

Description

somspa creates a Self-Organizing Map from spatial data.

Usage

somspa(x, ...)

Arguments

x

A sominp object.

...

Other arguments passed to methods from kohonen::som function which is used to create the SOM.

Details

x should be created by sominp. The output somsp objects can be plotted by plot and plot_ts functions or summarized by summary

Value

A somsp object, which contains:

See Also

som

sominp

Examples


dummy <- owda[Time <= 1600] #toy example
inp_som <- sominp(dummy)

my_som <- somspa(inp_som, rlen = 100, grid = somgrid(3, 3, "hexagonal"))
my_som$summary
my_som$som

plot(my_som)
plot_ts(my_som, n = 3)
plot_ts(my_som, n = c(1, 2, 4, 9)) 
plot_ts(my_som, n = 1:max(my_som$summary$node)) #plots all soms


[Package somspace version 1.2.4 Index]