grid: Creation of a grid

Description Usage Arguments Value Author(s) See Also Examples

Description

Creation of an object that defines the map structure of a som object.

Usage

1
grid(xdim, ydim, type = "hexagonal", current.index = 1 )

Arguments

xdim

number of rows of the grid

ydim

number of cols of the grid

type

a character specifying the type of the grid, 'rectangular' or 'hexagonal'.

current.index

cluster index used as reference in the distance plot.

Value

a grid object

Author(s)

David Gohel

See Also

som learn learnBatch plot.som biplot.som

Examples

1
2
3
4
5
6
7
8
library(MASS)
lcrabs <- log(crabs[, 4:8])
x <- grid ( xdim = 20 , ydim = 13 , type = "hexagonal" )
lcrabs.som <- som ( formula = ~ . , data = lcrabs
	, neighborhood = "uniform"
	, grid =  x
	, weights.min = 0 , weights.max = 4
	)

harrysouthworth/kohonen documentation built on May 17, 2019, 3:03 p.m.