Learn R Programming

popsom (version 4.3.1)

map.neuron: Return a Map Neuron

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab