draw.phylo | R Documentation |
Function to draw a phylogram on an existing plot in an arbitrary position with arbitrary scale.
draw.phylo(x1, y1, x2, y2, phylo, direction = "r", mirror = F, show.tip.label = FALSE, label.offset = 0, tip.color = "black", align.tip.label = FALSE)
x1, y1, x2, y2 |
Coordinates of the rectangle that will contain the phylogram. |
phylo |
An object of class "phylo". |
direction |
A character string specifying the direction in which the phylogram will be drawn; it must be one of "r"ightwards (default), "l"eftwards, "u"pwards or "d"ownwards. |
mirror |
A logical indicating whether the phylogeny should be plotted in reverse order, i.e.: mirrored. |
show.tip.label |
A logical indicating whether tip labels should be drawn; defaults to FALSE. The labels will be placed outside of the coordinate rectangle provided. |
label.offset |
A numeric giving the distance between the tips and their corresponding labels, defaults to 0. |
tip.color |
A single color or vector of colors to be used for the tip labels, defaults to black. |
align.tip.label |
A logical indicating whether tip labels should be aligned with the furthest tip rather than each tip individually, defaults to FALSE. |
The phylogram is laid out such that the outermost branches lie on the edges of the coordinate rectangle, with the root and furthest tip on the other edges.
None
Chris Field <fieldc@ethz.ch>
None
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.