Plot branch colors by a quantitative trait or value
Function plots a tree with branches colored by the value for a quantitative trait or probability, by various methods. Unlike most other tree plotting functions in phytools, this function calls plot.phylo
(not plotSimmap
) internally.
plotBranchbyTrait(tree, x, mode=c("edges","tips","nodes"), palette="rainbow", legend=TRUE, xlims=NULL, ...)
tree |
an object of class "phylo". |
x |
either a vector of states for the edges, tips, or nodes of the tree (for |
mode |
string indicating plotting mode. |
palette |
color palette to translate character values to color. Options are presently |
legend |
can be a logical value ( |
xlims |
range for the translation map between trait values and the color map. Should be inclusive of all the values in |
... |
other optional arguments to be passed to |
Note that if prompt=TRUE
, the function will prompt for the position of the legend.
Plots a phylogeny.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.