next up previous contents
Next: The visibility of the Up: Setting the graphical contents Previous: Setting the proportional diameters

Setting the colors or gray levels of neurons

  

ncolor Set the color of neurons
<graphic> name of the graphic structure
-fg <fgcolor> foreground color
-bg <bgcolor> background color
[-expr <expr>;] a boolean expression
ngray Set the gray level for the background of the neurons
<graphic> name of the graphic structure
-f <field> source field for evaluating gray levels
[-sca <scaling>] scaling function, default=SOM
[-min <min>] minimum value
[-max <max>] maximum value
[-rgb] use the pseudo colors instead of gray levels

The background color of the neurons can be set in two different ways. The first command ncolor is also able to set the foreground color. If the last parameter, the boolean expression, is given, then the color settings are changed only in neurons for which the expression gives the truth value true.

The second command sets the gray level of the background of the neurons based on the values of a specified variable <field>. The functionality of the last parameter -rgb depends on the used computing environment, but it should produce a pseudo color map having colors from blue to green and further to red.

Example (ex7.15): The following commands set the gray level of the background of the neurons based on weight indus_w. The latter two commands set conditionally background of the neurons according to the given rules.

...
NDA> somtr -d boston -sout s1 -l 5
...
NDA> mkgrp grp1 -s s1
NDA> layer grp1 -l 3
NDA> ngray grp1 -f s1_W.indus_w
...
NDA> ncolor grp1 -bg red -expr 'statdata.crim_avg' > 1;
NDA> ncolor grp1 -bg green -expr 'statdata.zn_avg' > 3;
...

figure3310


next up previous contents
Next: The visibility of the Up: Setting the graphical contents Previous: Setting the proportional diameters

Anssi Lensu
Thu May 17 15:00:44 EET DST 2001