Learn R Programming

popsom (version 4.3.1)

map.projection: Map Projection

Description

Prints the association of labels with map elements.

Usage

map.projection(map)

Arguments

map

an object of type 'map'.

Value

a dataframe containing the projection onto the map for each training observation.

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 label association for the map
map.projection(m)
# }

Run the code above in your browser using DataLab