Description Usage Arguments Examples
Map variables added as map1 and map2. Plot these to get traditional SOM plot. Tour over all other variables to see how well the map fits the original data.
1 2 |
data |
SOM object |
... |
ignored |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
d.music <- read.csv("http://www.ggobi.org/book/data/music-all.csv")
music <- rescaler(d.music)[complete.cases(d.music), 1:10]
music.som <- som::som(music[,-(1:3)], 6, 6, neigh="bubble", rlen=1000)
ggobi(music.som)
## End(Not run)
## Not run:
d.music <- read.csv("http://www.ggobi.org/book/data/music-all.csv")
music <- rescaler(d.music)[complete.cases(d.music), 1:10]
music.hex <- kohonen::som(music[,-(1:3)], grid = somgrid(3, 3, "hexagonal"), rlen=1000)
music.rect <- kohonen::som(music[,-(1:3)], grid = somgrid(6, 6, "rectangular"), rlen=1000)
ggobi(music.rect)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.