Calculate node x and y coordinates
Calculates the node x and y locations for plotting a phylogenetic tree.
phyloXXYY(phy, tip.order = NULL)
phy |
A |
tip.order |
A character vector of tip labels, indicating their order along the y axis (from top to bottom). Or, a numeric vector of tip node IDs indicating the order. |
The y coordinates of the tips are evenly spaced from 0 to 1 in pruningwise order. Ancestor y nodes are given the mean value of immediate descendants. The root is given the x coordinate 0 and descendant nodes are placed according to the cumulative branch length from the root, with a maximum x value of 1.
yy |
Internal node and tip y coordinates |
xx |
Internal node and tip x coordinates |
phy |
A |
segs |
A list of |
torder |
The tip order provided as |
eorder |
The an index of the reordered edges
compared to the result of |
Peter Cowan pdc@berkeley.edu
treePlot
, plotOneTree
data(geospiza) coor <- phyloXXYY(geospiza) plot(coor$xx, coor$yy, pch = 20)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.