Learn R Programming

metricTester (version 1.3.0)

evolveTraits: Evolve two traits up a tree

Description

Given a phylogeny, will generate associated trait data for two traits following a Brownian motion evolution model.

Usage

evolveTraits(tree, sigma = 0.1)

Arguments

tree
A phylogeny.
sigma
The Brownian motion rate parameter.

Value

A list where the first object is a phylogeny with the desired number of species and the second object is a matrix of trait values for those species.

Details

Evolves two traits independently up phylogeny with Brownian motion evolution process. Sigma is currently set to 0.1 as default.

References

Miller, E. T., D. R. Farine, and C. H. Trisos. 2016. Phylogenetic community structure metrics and null models: a review with new methods and software. Ecography DOI: 10.1111/ecog.02070

Examples

Run this code
tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50)

results <- evolveTraits(tree)

Run the code above in your browser using DataLab