draw.phylo: Function to draw a phylogram on an existing plot in an...

View source: R/draw.phylo.r

draw.phyloR Documentation

Function to draw a phylogram on an existing plot in an arbitrary position with arbitrary scale.

Description

Function to draw a phylogram on an existing plot in an arbitrary position with arbitrary scale.

Usage

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)

Arguments

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.

Details

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.

Value

None

Author(s)

Chris Field <fieldc@ethz.ch>

Examples

None

cmfield/apextra documentation built on July 11, 2022, 3:42 a.m.