make.era.map {phytools} | R Documentation |
This function creates a temporal map on the tree based on limits
provided by the user.
make.era.map(tree, limits, ...)
tree |
a phylogenetic tree as an object of class |
limits |
a vector containing the temporal limits, in time since the root node of the tree, for the mappings. |
... |
optional arguments. |
A modified phylogenetic tree of class "phylo"
with the following additional elements:
maps |
a list of named vectors containing the times spent in each state on each branch, in the order in which they occur. |
mapped.edge |
a matrix containing the total time spent in each state along each edge of the tree. |
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.
make.simmap
, read.simmap
, plotSimmap
tree<-pbtree(n=1000,scale=100) tree<-make.era.map(tree,c(0,25,50,75)) plotSimmap(tree,pts=FALSE,ftype="off")