evolveTraits: Evolve two traits up a tree

Description Usage Arguments Details Value References Examples

View source: R/evolveTraits.R

Description

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

Usage

1
evolveTraits(tree, sigma = 0.1)

Arguments

tree

A phylogeny.

sigma

The Brownian motion rate parameter.

Details

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

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.

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

1
2
3
tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50)

results <- evolveTraits(tree)

metricTester documentation built on Dec. 16, 2019, 1:20 a.m.