Learn R Programming

SOMMD (version 0.1.2)

som.add.numbers: Add Neuron Numbering

Description

Add the neuron numbering scheme to the SOM plot

Usage

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

Value

Called for its effect.

Arguments

SOM

the SOM object

scale

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

col

the color of the text

Author

Stefano Motta stefano.motta@unimib.it

Examples

Run this code
#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")

Run the code above in your browser using DataLab