View source: R/som.add.numbers.R
som.add.numbers | R Documentation |
Add the neuron numbering scheme to the SOM plot
som.add.numbers(SOM, scale = 1, col = "black")
SOM |
the SOM object |
scale |
a number to scale up or down the size of the text |
col |
the color of the text |
Called for its effect.
Stefano Motta stefano.motta@unimib.it
#Read example SOM data
som_model <- readRDS(system.file("extdata", "SOM_HIFa.rds", package = "SOMMD"))
#Plot the som
plot(som_model, type = "count", bgcol=c("red", "blue", "yellow", "green"), shape='straight')
#Add neuron numbers on the som
som.add.numbers(som_model, scale=0.5, col="black")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.