som.add.numbers {SOMMD}R Documentation

Add Neuron Numbering

Description

Add the neuron numbering scheme to the SOM plot

Usage

som.add.numbers(SOM, scale = 1, col = "black")

Arguments

SOM

the SOM object

scale

a number to scale up or down the size of the text

col

the color of the text

Value

Called for its effect.

Author(s)

Stefano Motta stefano.motta@unimib.it

Examples

#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")


[Package SOMMD version 0.1.2 Index]