birthdeath.tree {PhySim}R Documentation

Simulate a birth death phylogenetic tree

Description

Simulates a birth death tree for a given time period

Usage

birthdeath.tree(b, d, T)

Arguments

b birth or speciation rate
d death or extinction rate
T number of time units to simulate

Details

To simulate pure birth (Yule) trees set extinction to 0.

Value

an object of class "phylo". extinct lineages are labelled "x". extant lineages at time T are numbered.

Author(s)

Jason T. Weir

See Also

birthdeath.simulation to simulate a batch of trees

Examples

 #to simulate a phylogenetic tree
 tree <- birthdeath.tree(b=0.3, d=0, T=10)

[Package PhySim version 1.0 Index]