Creates a temporal map on the tree based on limits
provided by the user.
make.era.map(tree, limits, ...)
An object of class "simmap"
with the specified eras mapped as different regimes.
an object of class "phylo"
.
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.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
make.simmap
, read.simmap
, plotSimmap
## simulate tree with total depth of 100
tree<-pbtree(n=1000,scale=100)
## subdivide into mapped eras
tree<-make.era.map(tree,c(0,25,50,75))
## create graph of mapped tree
plot(tree,ftype="off",lwd=1)
## reset margins to default
par(mar=c(5.1,4.1,4.1,2.1))
Run the code above in your browser using DataLab