Learn R Programming

phytools (version 0.5-20)

densityTree: Plots a posterior sample of trees

Description

Functions plots a posterior sample of trees, including with mapped discrete characters.

Usage

densityTree(trees, colors="blue", alpha=NULL, method="plotTree", fix.depth=FALSE,
	use.edge.length=TRUE, compute.consensus=FALSE, ...)

Arguments

trees
an object of class "multiPhylo" or "multiSimmap".
colors
a color or a named vector of colors in which names correspond to mapped states in an object of class "multiSimmap".
alpha
transparency level for plotted trees. By default will be one divided by the number of trees.
method
plotting method to be used internally. Can be "plotTree" or "plotSimmap".
fix.depth
logical value indicating whether or not to plot trees with a fixed depth or to permit plotted trees to have different depths.
use.edge.length
logical value indicating whether to use the edge lengths of the input tree. Defaults to use.edge.length=TRUE unless any input tree edge lengths are NULL.
compute.consensus
logical value indicating whether or not to use the tip order from a consensus tree. (Defaults to compute.consensus=FALSE.
...
arguments to be passed to plotTree or plotSimmap.

Value

  • Function creates a plot.

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.