plotsom: Plot SOM results

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/plotsom.R

Description

Plot results of Self Organizing Maps (SOM).

Usage

1
plotsom(obj, grp, type = c("num", "bar"), margins = c(3,2,2,2), ...)

Arguments

obj

result object from som

grp

numeric vector or factor with group information

type

type of presentation for output, see details

margins

plot margins for output, see par

...

additional graphics parameters, see par

Details

The results of Self Organizing Maps (SOM) are plotted either in a table with numbers (type="num") or with barplots (type="bar"). There is a limitation to at most 9 groups. A summary table is returned.

Value

sumtab

Summary table

Author(s)

Peter Filzmoser <[email protected]>

References

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.

See Also

som

Examples

1
2
3
4
5
6
7
data(glass)
require(som)
Xs <- scale(glass)
Xn <- Xs/sqrt(apply(Xs^2,1,sum))
X_SOM <- som(Xn,xdim=4,ydim=4) # 4x4 fields
data(glass.grp)
res <- plotsom(X_SOM,glass.grp,type="bar")

chemometrics documentation built on May 29, 2017, 10:42 a.m.