| Calling Sequence | DrawTree(tree,method,modif)
| |||||||||||||||
| Parameters |
| |||||||||||||||
| Return Type | NULL | |||||||||||||||
| Synopsis | DrawTree draws a phylogenetic tree and produces a file containing postscripts commands. This is a single interface for all the methods and variants that we could imagine for drawing phylogenetic trees. The tree must contain length information in its nodes, as it is the common case for the functions which build the trees. The behaviour is classified according to the following phases: | |||||||||||||||
Mode of tree display: | ||||||||||||||||
| ||||||||||||||||
Vertical horizontally equally spaced leaves, vertical height preserved | ||||||||||||||||
Unrooted planar representation, root is only identified by a small circle, branch distances are preserved. Also called Splat trees | ||||||||||||||||
Radial leaves are on equally spaced directions from the root, distances to the root preserved | ||||||||||||||||
RadialLines like Radial, with arcs indicating distances | ||||||||||||||||
Phylogram left to right horizontal branches, branch lengths preserved | ||||||||||||||||
Cladogram left to right horizontal branches, branches to leaves stretched to align right | ||||||||||||||||
Bisect like Radial, but parent is on bisector line | ||||||||||||||||
BisectLines like Bisect, with arcs indicating distances | ||||||||||||||||
ArcRadial a Cladogram drawn with polar coordinates | ||||||||||||||||
Reordering of leaves: | ||||||||||||||||
| ||||||||||||||||
OrderLeaves= | ||||||||||||||||
OrderLeaves=LeftHeavy permute the left-right subtrees to make the left subtrees the largest | ||||||||||||||||
OrderLeaves=Random randomly permute the left-right subtrees to (possibly) obtain better looking trees | ||||||||||||||||
Branch labelling: | ||||||||||||||||
| ||||||||||||||||
LengthFormat= | ||||||||||||||||
LengthFormat= | ||||||||||||||||
BranchDrawing= | ||||||||||||||||
Internal Nodes: | ||||||||||||||||
| ||||||||||||||||
InternalNodes= | ||||||||||||||||
Leaf display information: | ||||||||||||||||
| ||||||||||||||||
Legend leaf[Label] written (no circle) | ||||||||||||||||
LeafDrawing= | ||||||||||||||||
Clusters= | ||||||||||||||||
RadialLabels leaf labels radial | ||||||||||||||||
Cross referencing: | ||||||||||||||||
| ||||||||||||||||
CrossReference all labelling is done with an alphanumeric character and leaf[Label] is cross referenced on the right | ||||||||||||||||
Title: | ||||||||||||||||
Title=anything Title to appear centered at the bottom | ||||||||||||||||
Size of Text: | ||||||||||||||||
TextSize= | ||||||||||||||||
Minimum branch length: | ||||||||||||||||
MinBranchLength=positive Force all branches to be of a minimum length. The labelling will be done with the original lengths, but the drawing will use this minimum value. This is a useful option when part of the tree is cramped together and difficult to see. The proportions will not be maintained, but the tree can be understood. It is recommended to display the edge lengths if this option is used. | ||||||||||||||||
list of drawing commands: | ||||||||||||||||
CTEXT(...) Centered text (as for DrawPlot) | ||||||||||||||||
LTEXT(...) Left aligned text (as for DrawPlot) | ||||||||||||||||
RTEXT(...) Right aligned text (as for DrawPlot) | ||||||||||||||||
LINE(...) Line (as for DrawPlot) | ||||||||||||||||
POLYGON(...) Closed polygon (as for DrawPlot) | ||||||||||||||||
CIRCLE(...) Circle (as for DrawPlot) | ||||||||||||||||
In all cases, | ||||||||||||||||
list(anything) the numbering in the leaves is used as an index in this list, and the value is the cluster name. Clustering will be done on equal values. | ||||||||||||||||
procedure as above, but the value is obtained by running the procedure on the Leaf. | ||||||||||||||||
Drawing of lateral gene transfer (LGT) arrows: in the ArcRadial tree display, arrows can be drawn to depict LGTs. Each LGT must is characterized by its two endpoints, defined in a list placed in the 4th field of the relevant Tree() structure (or the 3rd field of a Leaf() structure), as follows: [ 'unique id', {'start','end'}, height, (optionally, an RGB color triplet)]. | ||||||||||||||||
A list of drawing commands is composed of the objects (as defined in ?DrawPlot) LTEXT, CTEXT, RTEXT, LINE, POLYGON and CIRCLE. | ||||||||||||||||
| See also | BootstrapTree, DrawPlot, GapTree, Leaf, LeastSquaresTree, PhylogeneticTree, SignedSynteny, Synteny, SystemCommand, Tree, ViewPlot | |||||||||||||||