Skip to contents

Set up a grid of units, of a specified size and topology.Wrapper of kohonen::somgrid.

Usage

geosomgrid(
  xdim,
  ydim,
  topo = "hexagonal",
  neighbourhood.fct = "gaussian",
  toroidal = FALSE
)

Arguments

xdim

X dimensions of the grid

ydim

Y dimensions of the grid.

topo

(optional)Choose between a hexagonal or rectangular topology,default is hexagonal.

neighbourhood.fct

(optional)Choose between bubble and gaussian neighbourhoods when training a GeoSOM."bubble" or "gaussian"(default).

toroidal

(optional)Logical, whether the grid is toroidal or not.Default is FALSE.

Value

An object of class "somgrid", with elements pts, and the input arguments to the function.

Author

Wenbo Lv lyu.geosocial@gmail.com