Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

position

Compute Map Positions for Given Points


Description

Compute the (x,y)-positions of points on the map.

Usage

position(map,points)

Arguments

map

An object of type 'map'.

points

A data frame of points to be mapped.

Value

A data frame with (x,y)-positions. The data frame has two columns:

x-dim

The x-position of the corresponding point int the 'points' data frame.

y-dim

The y-position of the corresponding point int the 'points' data frame.

Author(s)

Lutz Hamel

Examples

data(iris)

df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)

m <- map(df,labels,xdim=15,ydim=10,train=10000)

position(m,df)

popsom

Tools for Building, Visualizing, and Evaluating Self-Organizing Maps

v5.1
GPL
Authors
Lutz Hamel [aut, cre], Benjamin Ott [aut], Gregory Breard [aut], Robert Tatoian [aut], Michael Eiger [aut], Vishakh Gopu [aut]
Initial release
2020-12-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.