Plots a tree (R.W. Payne).
Option
SIZE = scalar |
Provides a multiplier by which to scale the node labels |
---|
Parameters
TREE = trees |
Trees to be plotted |
---|---|
XTERMINAL = scalars or variates |
X-spacing (scalar) or x-values (variate) for the terminal nodes of each tree; default 2 |
Description
BGRAPH
plots a tree. The tree to be plotted is specified by the TREE
parameter. BGRAPH
arranges the nodes with the root at the top and the terminal nodes at the bottom of the plot. The terminal nodes are arranged automatically across the screen, but the x-coordinates can be specified explicitly using the XTERMINAL
parameter. The SIZE
option allows the size of the node labels to be adjusted by a scaling factor (default 1).
Option: SIZE
.
Parameters: TREE
, XTERMINAL
.
Method
BGRAPH
uses the standard tree functions to parse the tree and thus decide where to plot each node.
See also
Directive: TREE
.
Procedures: BPRINT
, BRDISPLAY
, BKDISPLAY
, BRDISPLAY
.
Commands for: Graphics.
Example
CAPTION 'BGRAPH example',\ 'Example 1 from Genkey Manual (Payne 1993, Rothamsted).';\ STYLE=meta,plain FACTOR [NVALUES=8; LEVELS=2] T1,T2,T3,T4,T5 READ T1,T2,T3,T4,T5 1 1 1 2 1 1 2 1 2 2 1 2 1 1 1 2 1 2 1 2 2 2 1 1 2 2 2 1 1 1 2 2 2 1 2 2 2 2 2 2 : TEXT [VALUES=A,B,C,D,E,F,G,H] Taxa PRINT Taxa,T1,T2,T3,T4,T5; FIELD=6,5(4); DECIMALS=0 BKEY [PRINT=diagram; TAXONNAMES=Taxa; CRITERION=cme; KEY=Ex1]\ T1,T2,T3,T4,T5 BGRAPH Ex1