colorCode: Data coloring via a Self-Organising Map

Description Usage Arguments Author(s) References Examples

Description

colorcode maps observations to integers in an organised way: close observations should be assigned close integers (and vice versa). The coding is done by fitting a one dimensional Self-Organising Map to the data. The main use of this method is to provide color based linking between views.

Usage

1
colorCode(data, nbcolor)

Arguments

data

a matrix or a data frame of observations

nbcolor

the number of colors in the resulting mapping (i.e., the output will belong to [1,nbcolor]

Author(s)

Fabrice Rossi

References

Vesanto, J. (2002) Data Exploration Process Based on the Self–Organizing Map, PhD thesis, Helsinki University of Technology, Espoo (Finland), Acta Polytechnica Scandinavica, Mathematics and Computing Series No. 115.

Examples

1
2
3
4
5
6
7
8
9
data(iris)
# scaling
data <- scale(iris[1:4])

# code calculation
code <- colorCode(data,50)

# display the result
pairs(data,bg=rainbow(50)[code],pch=21)

yasomi documentation built on May 2, 2019, 5:59 p.m.