Learn R Programming

popsom (version 6.0)

map.position: Compute Map Positions for Given Points

Description

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

Usage

map.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 in the 'points' data frame.

y-dim

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

Examples

Run this code
# NOT RUN {
data(iris)

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

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

map.position(m,df)
# }

Run the code above in your browser using DataLab