make.era.map: Create "era" map on a phylogenetic tree
Description
This function creates a temporal map on the tree based on limits provided by the user.
Usage
make.era.map(tree, limits, ...)
Arguments
tree
an object of class "phylo".
limits
a vector containing the temporal limits, in time since the root node of the tree, for the mappings. The first number should be 0, and each subsequent number should be the start of each subsequent regime or era to be mapped on the tree.
...
optional arguments.
Value
An object of class "simmap" with the specified eras mapped as different regimes.
References
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
# NOT RUN {tree<-pbtree(n=1000,scale=100)
tree<-make.era.map(tree,c(0,25,50,75))
plot(tree,ftype="off",lwd=1)
par(mar=c(5.1,4.1,4.1,2.1)) ## reset margins to default# }