som.add.numbers: Add Neuron Numbering

View source: R/som.add.numbers.R

som.add.numbersR 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")


SOMMD documentation built on Oct. 2, 2024, 5:07 p.m.