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, ...)
"plot"(x, ...)"phylo".names(x) should contain the species names and match tree$tip.label. Or, for plot.contMap, an object of class "contMap".plotSimmap. As with fsize, this can be a vector with the second element giving font type for the legend.FALSE no legend is plotted; if a numeric value, it gives the length of the legend in units of branch length. Default is 0.5 times the total tree length.c(min(x),max(x)), and should always include this range."phylogram" for a rightward square phylogram; and "fan" for a circular phylogram.type="phylogram".plot=FALSE then an object of class "contMap" will be returned without plotting.plot.contMap which include all the arguments of contMap except for tree, x, res, and lims. Also method, "fastAnc", "anc.ML", or "user" (for user-supplied states) specifying which function to use for ancestral state estimation; hold specifies whether or not to hold output to graphical device before plotting (defaults to hold=TRUE); and anc.states a vector containing some or multiple ancestral user-supplied ancestral states at nodes. Some other plotting arguments, such as xlim and ylim, may also work."contMap" is returned invisibly.
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