ladderize: Ladderize a Tree

Description Usage Arguments Author(s) See Also Examples

Description

This function reorganizes the internal structure of the tree to get the ladderized effect when plotted.

Usage

1
ladderize(phy, right = TRUE)

Arguments

phy

an object of class "phylo".

right

a logical specifying whether the smallest clade is on the right-hand side (when the tree is plotted upwards), or the opposite (if FALSE).

Author(s)

Emmanuel Paradis

See Also

plot.phylo, reorder.phylo

Examples

1
2
3
4
5
6
tr <- rcoal(50)
layout(matrix(1:4, 2, 2))
plot(tr, main = "normal")
plot(ladderize(tr), main = "right-ladderized")
plot(ladderize(tr, FALSE), main = "left-ladderized")
layout(matrix(1, 1))


Search within the ape package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.