contMap {phytools} | R Documentation |
Function plots a tree with a mapped continuous character. The mapping is accomplished by estimating states at internal nodes using ML with fastAnc
, and the interpolating the states along each edge using equation [2] of Felsenstein (1985).
contMap(tree, x, res=100, fsize=NULL, ftype=NULL, lwd=4, legend=NULL, lims=NULL, outline=TRUE, sig=3, type="phylogram", direction="rightwards", plot=TRUE, ...) ## S3 method for class 'contMap' plot(x, ...)
tree |
object of class |
x |
vector of phenotypic trait values for species. |
res |
resolution for gradient plotting. Larger numbers indicate a finer (smoother) gradient. |
fsize |
relative font size - can be a vector with the second element giving the font size for the legend. |
ftype |
font type - see options in |
lwd |
line width for branches. |
legend |
if |
lims |
range for the color map. By default, this will be |
outline |
logical value indicating whether or not to outline the branches of the tree in black. |
sig |
the number of decimal places to show on the legend limits. |
type |
type of plot desired. Options are |
direction |
plotting direction for |
plot |
logical value indicating whether or not to plot the tree. If |
... |
optional arguments for |
Plots a tree. An object of class "contMap"
is returned invisibly.
Liam Revell liam.revell@umb.edu
Felsenstein, J. 1985. Phylogenies and the comparative method. American Naturalist, 125, 1-15.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Revell, L. J. 2013. Two new graphical methods for mapping trait evolution on phylogenies. Methods in Ecology and Evolution, 4, 754-759.
anc.ML
, densityMap
, fastAnc
, plotSimmap