Learn R Programming

phytools (version 0.6-44)

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

a phylogenetic tree as an object of class "phylo".

limits

a vector containing the temporal limits, in time since the root node of the tree, for the mappings.

...

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.

See Also

make.simmap, read.simmap, plotSimmap

Examples

Run this code
# NOT RUN {
tree<-pbtree(n=1000,scale=100)
tree<-make.era.map(tree,c(0,25,50,75))
plotSimmap(tree,pts=FALSE,ftype="off")
# }

Run the code above in your browser using DataLab