Learn R Programming

treesliceR (version 1.0.3)

DR: Calculate the tip diversification rates (DR) for a phylogenetic tree

Description

This function computes the tip diversification rates Jetz et al., 2012, or DR, for an inputted ultrametric phylogenetic tree.

Usage

DR(tree)

Value

The function returns a data frame containing the tip diversification rates for all species within the inputted phylogenetic tree.

Arguments

tree

phylo. An ultrametric phylogenetic tree in the "phylo" format.

Author

Matheus Lima de Araujo matheusaraujolima@live.com

References

See the tutorial on how to use this function on our website. Jetz, Walter, et al. "The global diversity of birds in space and time." Nature 491.7424 (2012): 444-448. doi:10.1038/nature11631

Examples

Run this code
# Generate a random tree
tree <- ape::rcoal(20)

# Computing the tip-DR
DR(tree)

Run the code above in your browser using DataLab