ape (version 1.2-3)

add.scale.bar: Add a Scale Bar to a Phylogeny Plot

Description

This function adds a horizontal bar giving the scale of the branch lengths to a plot of a phylogenetic tree on the current graphical device.

Usage

add.scale.bar(x, y, phy, bar = NULL)

Arguments

x
the x location of the legend.
y
the y location of the legend.
phy
an object of class "phylo".
bar
a numeric value giving the length of the scale bar. If none is supplied (the default), a value is calculated from the data.

Details

This function can be used in two ways: either an object of class "phylo" is given and its branch lengths are used to determine the length of the scale bar, or the argument bar is specified and this is used as the length of the bar. In the latter case, the argument phy may be omitted.

See Also

plot.phylo, locator