next up previous contents
Next: Graphics for groups in Up: Graphics Previous: Vector fields

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 reduced into range [0,MAX_COL-1] by taking the remainder of integer division by MAX_COL. random provides a randomly selected basic color.

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

In addition, some operations might use gray levels or colors of the warm color scale, which are coded as data field values between 0 and 255. The choice between the gray and color scales can be chosen in those commands with -rgb switch. To use the gray levels or warm scale colors for neurons, bars, data points, groups, etc. the following notations can be used:

gray_<n> Selects the <n>th color of the gray
scale tex2html_wrap_inline10328 (black ... white)
rgb_<n> Selects the <n>th color of the warm
scale tex2html_wrap_inline10328 (blue ... red)
gray_random Selects a random color of the gray scale
rgb_random Selects a random color of the warm color scale

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

...
NDA> bar grp1 -f crim -co red
NDA> bar grp1 -f zn -co rgb_220
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
# Use the range of the field inside the current layer of 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
...


next up previous contents
Next: Graphics for groups in Up: Graphics Previous: Vector fields

Anssi Lensu
Tue Jul 23 11:58:18 EET DST 2002