make.era.map {phytools} | R Documentation |
Create "era" map on a phylogenetic tree
Description
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 |
limits |
a vector containing the temporal limits, in time since the root node of the tree, for the mappings. The first number should be |
... |
optional arguments. |
Value
An object of class "simmap"
with the specified eras mapped as different regimes.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
See Also
make.simmap
, read.simmap
, plotSimmap
Examples
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
[Package phytools version 2.3-0 Index]