Plot SOM results
Plot results of Self Organizing Maps (SOM).
plotsom(obj, grp, type = c("num", "bar"), margins = c(3,2,2,2), ...)
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.
sumtab |
Summary table |
Peter Filzmoser <P.Filzmoser@tuwien.ac.at>
K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.
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")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.