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"
).detail
: only relevant for 3D-plotting of spherical SOMs: higher values 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
.
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; keys can be provides as Strings or Symbols; colours must be valid coulour definitions (such as RGB, names, etc). Default:brg
detail
: only relevant for 3D-plotting of spherical SOMs: higher values 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
.