next up previous contents
Next: Line diagrams based on Up: Graphical presentations inside subgraphs Previous: Range plots in subgraphs

Line diagrams in subgraphs

   

tabular2494

The first command ldgr creates line diagrams to all subgraphs. Then the commands ldgrc or ldgrcld can be used to set components to diagrams. The ldgrc sets the components of the line diagram according to one data record that has been associated to a subgraph. Instead, the ldgrc gets fields through a classifying data frame <cldata> from which a class associated to a subgraph is used to determine the data records from data. Thus, the number of classes in a classifying data frame should equal the number of subgraphs. To remove the line diagram components the whole line diagram should be deleted.

Example (ex7.20): The example displays three line diagrams in two subgraphs. First line diagrams are created and then three components are added to them.

...
NDA> mkgrp grp1
NDA> addsg grp1
NDA> setsg grp1 -inx 0 -rec 15
NDA> addsg grp1
NDA> setsg grp1 -inx 1 -rec 50
NDA> ldgr grp1 -n l1 -co red
NDA> ldgrc grp1 -n l1 -inx 0 -f boston.zn
NDA> ldgrc grp1 -n l1 -inx 1 -f boston.age
NDA> ldgrc grp1 -n l1 -inx 2 -f boston.rate
...

figure2510

Example (ex7.21): The second example shows how line diagrams can be used to display the ranges of the data in neurons. Two line diagrams "min" and "max" are created and then three components "zn_min", "age_min", "rate_min" are set to the diagram "min" and the corresponding maximum values are set to the diagram "max".

...
NDA> clstat -c cld1 -d boston -dout stadata -all
...
NDA> mkgrp grp1 -s som
...
NDA> ldgr grp1 -n min -co red
NDA> ldgrc grp1 -n min -inx 0 -f stadata.zn_min -sca data
 -min boston.zn -max boston.zn
NDA> ldgrc grp1 -n min -inx 1 -f stadata.age_min -sca data
 -min boston.age -max boston.age
NDA> ldgrc grp1 -n min -inx 2 -f stadata.rate_min -sca data
 -min boston.rate -max boston.rate
NDA> ldgr grp1 -n max -co blue
NDA> ldgrc grp1 -n max -inx 0 -f stadata.zn_max -sca data
 -min boston.zn -max boston.zn
NDA> ldgrc grp1 -n max -inx 1 -f stadata.age_max -sca data
 -min boston.age -max boston.age
NDA> ldgrc grp1 -n max -inx 2 -f stadata.rate_max -sca data
 -min boston.rate -max boston.rate
...

figure2517

Example (ex7.21): The third example shows how all the data records classified to the neurons can be plotted. The presentation is also known as parallel coordinates.

...
NDA> mkgrp grp1 -s som
...
NDA> ldgr grp1 -n set1 -co red
NDA> ldgrcld grp1 -n set1 -inx 0 -f boston.zn -c cld -sca data
  -min boston.zn -maxboston.zn
NDA> ldgrcld grp1 -n set1 -inx 1 -f boston.age -c cld -sca data
  -min boston.age -max boston.age
NDA> ldgrcld grp1 -n set1 -inx 2 -f boston.rate -c cld -sca data
  -min boston.rate -max boston.rate
...

figure2524



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