Functions plots a posterior sample of trees, including with mapped discrete characters.
make.transparent is used internally and converts a color to transparent with a certain user-specified alpha level.
densityTree(trees, colors="blue", alpha=NULL, method="plotTree",
fix.depth=FALSE, use.edge.length=TRUE, compute.consensus=TRUE,
use.gradient=FALSE, show.axis=TRUE, ...)
make.transparent(color, alpha)an object of class "multiPhylo" or "multiSimmap".
a color or a named vector of colors in which names correspond to mapped states in an object of class "multiSimmap".
transparency level for plotted trees which is passed to internally used function, make.transparent. (0 is fully transparent, which 1 is fully opaque.) By default will be one divided by the number of trees.
plotting method to be used internally. Can be "plotTree" or "plotSimmap".
logical value indicating whether or not to plot trees with a fixed depth or to permit plotted trees to have different depths.
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.
logical value indicating whether or not to use the tip order from a consensus tree. (Defaults to compute.consensus=TRUE Defaulted to FALSE in earlier version of this function.)
logical value indicating whether to plot all trees slightly offset using a rainbow color gradient. (Defaults to use.gradient=FALSE.)
logical value indicating whether or not to include a horizontal axis in the plot.
arguments to be passed to plotTree or plotSimmap. Some may be ignored if they are incompatible with the method.
in make.transparent, the color (or colors in a vector) to render transparent.
Function creates a plot.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.