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

Line diagrams in subgraphs

   

ldgr Create an empty line diagram
<graphic> name of the graphic structure
-n <name> name of the line diagram
-co <color> color for the line diagram
ldgr <graphic> -n <name> -rm
Remove a line diagram
ldgrc Set the component of a line diagram to all subgraphs
<graphic> name of the graphic structure
-n <name> name of the line diagram
-inx <index> index of the component
-f <field> source field
[-sca <scaling>] scaling function, default=SOM
[-min <min>] minimum value
[-max <max>] maximum value
ldgrcld Set the component of a line diagram to all subgraphs
<graphic> name of the graphic structure
-n <name> name of the line diagram
-inx <index> index of the component
[-id <subgraph>] the idendifier of a subgraph
-f <field> source field
-c <cldata> a classified data
[-sca <scaling>] scaling function, default=SOM
[-min <min>] minimum value
[-max <max>] maximum value
[-rand <percents>] percepts of the randomness around the points (0-100)

The first command ldgr creates empty line diagrams to all subgraphs. Then, commands ldgrc or ldgrcld can be used to add components to these diagrams. ldgrc sets the components of the line diagram according to one data record that has been associated to a subgraph. Instead, 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 be equal to the number of subgraphs. If the random factor (-rand)is given, the lines are scattered according to the percentual value. To remove the line diagram components, the whole line diagram should be deleted.

Example (ex7.20): This example displays three line diagrams in two subgraphs. First the line diagrams are created and then three components are added into 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

figure3438

Example (ex7.21): This second example shows, how line diagrams can be used to display the ranges of 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
...

figure3452

Example (ex7.34): This third example shows, how all 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

figure3459


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

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