expand.som {wccsom} | R Documentation |
Increases the size of a network by a factor of 2 in both x and y directions; code vectors for new units are interpolated.
expand.som(somnet, plotit=FALSE)
somnet |
Object of class "wccsom", generated by wccsom . |
plotit |
If TRUE , plots the new network with the
original units coloured white, the new ones red. |
For hexagonal grids, the six closest units are used for interpolation, weighted by distance; for rectangular grids, the four closest are used.
Returns the new network.
data(cepha) gr <- somgrid(3,3, "hexagonal") set.seed(7) x <- wccsom(cepha$patterns, grid=gr, trwidth=20, rlen=50) x2 <- expand.som(x, plotit=TRUE)