map.neuron: Return a Map Neuron

Description Usage Arguments Value Author(s) Examples

View source: R/map-utils.R

Description

Returns the contents of a neuron at (x,y) on the map as a vector.

Usage

1
map.neuron(map, x, y)

Arguments

map

an object of type 'map'.

x

map x-coordinate of neuron.

y

map y-coordinate of neuron.

Value

A vector representing the neuron.

Author(s)

Lutz Hamel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(iris)

## set data frame and labels
df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)

## build a map
m <- map.build(df, labels, xdim=15, ydim=10, train=1000)

## display the neuron at position (1,1)
map.neuron(m,1,1)

lutzhamel/popsom2 documentation built on May 25, 2020, 12:46 a.m.