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, :letterrcolormap: 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, :pdfor any file-type supported by MatPlotLib; default is:displayfileName: 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, :letterrcolors: 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:brgdetail: only relevant for 3D-plotting of spherical SOMs: higher values result in smoother display of the 3D-spheredevice: one of:display, :png, :svg, :pdfor any file-type supported by MatPlotLib; default is:displayfileName: name of image file. File extention overrides the setting ofdevice.