Visualisation
#
SOM.plotDensity
— Function.
plotDensity(som::Som; predict = nothing, title = "Density of Self-Organising Map", paper = :a4r, colormap = "autumn_r", detail = 45, device = :display, fileName = "somplot")
Plot the population of neurons as colours.
Arguments:
som
: the som of typeSom
; som is the only mandatory argumentpredict
: DataFrame of mappings as outputed bymapToSOM()
title
: main title of plotpaper
: plot size; currentlx supported::a4, :a4r, :letter, :letterr
colormap
: MatPlotLib colourmap (Python-style strings; e.g."Greys"
).device
: one of:display, :png, :svg, :pdf
or any file-type supported by MatPlotLib; default is:display
fileName
: name of image file. File extention overrides the setting ofdevice
.
#
SOM.plotClasses
— Function.
plotClasses(som::Som, frequencies;
title = "Class Frequencies of Self-Organising Map",
paper = :a4r,
colors = "brg",
detail = 45,
device = :display, fileName = "somplot")
Plot the population of neurons as colours.
Arguments:
som
: the som of typeSom
; som is the only mandatory argumentfrequencies
: DataFrame of frequencies as outputed by classFrequencies()title
: main title of plotpaper
: plot size; currentlx supported::a4, :a4r, :letter, :letterr
colors
: MatPlotLib colourmap (Python-style as string"gray"
or Julia-style as Symbol:gray
) or dictionary with classes as keys and colours as vals; default:brg
detail
: only relevant for 3D-plotting of spherical SOMs: higher values for detail result in smoother display of the 3D-spheredevice
: one of:display, :png, :svg, :pdf
or any file-type supported by MatPlotLib; default is:display
fileName
: name of image file. File extention overrides the setting ofdevice
.