next up previous contents
Next: Range plots in subgraphs Up: Graphical presentations inside subgraphs Previous: Plotting data in subgraphs

Bars in subgraphs

 

tabular2446

The command creates bars to all subgraphs in a graphic structure. The <index> defines the place of the bar related to other bars. The scaling parameters are documented in a greater length in Section 7.5. The boolean expression can be used to set bars only for a part of the subgraphs. If the value of the expression is TRUE for a data record corresponding to a subgraph, then a bar is created. See more about the evaluation of the expressions in Section 4.2.1.

This operation creates a high level representation for bars. In addition, one can influence the final image of the bar by selecting different modes for bar display (see the commands en and dis in Section 7.9).

Example (ex7.17): The following commands create two bars for displaying the average values "crim_avg" and "zn_avg" in a SOM-oriented graphic structure.

...
NDA> clstat -c cld1 -d boston -dout stadata -all
...
NDA> mkgrp grp1 -s som
NDA> setgdat grp1 -d stadata
NDA> layer grp1 -l 3
NDA> bar grp1 -f stadata.crim_avg -co red
NDA> bar grp1 -f stadata.zn_avg -co green
NDA> en grp1 bar barflat
NDA> dis grp1 barflat barlab saxis
...

figure2460

Example (ex7.18): This example is similar to the previous one, but now bars are displayed as vertical towers.

...
NDA> mkgrp win1 -s s1
NDA> setgdat win1 -d sta
NDA> setgcld win1 -c c1
NDA> layer win1 -l 4
NDA> axis win1 -ax z -sca abs -min -0.5 -max 1 -step 4
NDA> nplc win1 -ax z -f s1_W.b_w
NDA> nsize win1 -v 0.5
NDA> topo win1 -on
NDA> bar win1 -f s1_W.crim_w -co red -expr 's1_W.crim_w' > 0.01;
NDA> bar win1 -f s1_W.zn_w -co green -expr 's1_W.zn_w' > 0.01;
NDA> bar win1 -f s1_W.chas_w -co blue -expr 's1_W.chas_w' > 0.01;
NDA> dis win1 barlab barflat saxis
NDA> en win1 bar barvert
NDA> viewp win1 -dz 150 -dy -15 -xy 42 -yz -70
...

figure2467



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998