Skip to contents

Implementation of spatially-aware self-Organizing maps(GeoSOM) model model based on kohonen::supersom().

Usage

geosom(data, coords, wt, grid, normalize = TRUE, ...)

Arguments

data

A data.frame or tibble

coords

The coordinate column name in the data.

wt

The weight of spatial coordination and the weight of the non-spatial attribute is 1. If wt is 0,now it equal to som model.

grid

A grid for the codebook vectors: see geosomgrid.

normalize

(optional)Boolean, indicating whether non-spatial feature data should be normal standardization,default is True.

...

Other arguments passed to kohonen::supersom(),see ?kohonen::supersom().

Value

An object of class "kohonen" with components.

Author

Wenbo Lv lyu.geosocial@gmail.com

Examples

data(pmc)
set.seed(2004)
g = geosom(data = pmc, coords = c("centroidx","centroidy"),
wt = 3,grid = geosomgrid(6,10),normalize = TRUE)