next up previous contents
Next: Graphics for groups in Up: Graphics Previous: Record labels in subgraphs

Colors and scaling

  

Colors

Basic colors may be specified as names or numbers. Allowed names are listed below and, if a number is specified, it is scaled between [0,MAX-COL-1] by taking the remainder of integer division by MAX-COL. random provides a randomly selected basic color. In addition, some operations might use gray levels, which are coded as data field values between 0 and 255.

Names of the colors:
red, green, blue, yellow, magenta, orange, cyan, brown, black, white, random

Example: For instance, color can be specified to the following commands.

...
NDA> bar grp1 -f crim -co red
NDA> gcolor grp1 -cl g1 -co red

Scaling

The scaling functions:
data find the range of a data vector
abs absolute values given as parameters
vec select corresponding minimum and maximum components from the vectors given as parameters
som find minimum and maximum values inside the SOM (TS-SOM layer)
som2 like som, but empty neurons are skipped

The scaling plays a key role when values from data frames are converted into features of graphical objects. Five functions for scaling values are listed above. The first three functions can be used with any type of graphic structure, som and som2 only work with the SOM-oriented graphic structure.

Example (ex7.27): The following commands demonstrate briefly the use of scaling.

...
NDA> mkgrp grp1 -s s1
NDA> setgdat grp1 -d stadata
# Default scaling is typically "data"
NDA> bar grp1 -f stadata.crim_avg -co red
# Find the range of the field inside the current layer of the TS-SOM
NDA> bar grp1 -f stadata.crim_avg -co red -sca som
# Similar to the previous command, but skip empty neurons
NDA> bar grp1 -f stadata.crim_avg -co red -sca som2
...



Anssi Lensu
Wed Oct 6 12:57:48 EET DST 1999