Learn R Programming

pirouette (version 1.6.9)

create_bd_tree: Create a (constant-rate) birth-death (BD) tree

Description

Create a (constant-rate) birth-death (BD) tree

Usage

create_bd_tree(n_taxa = 6, crown_age = 10, n_0 = 2, mu = 0.1)

Value

a phylogenetic tree of type phylo

Arguments

n_taxa

number of tree tips

crown_age

the fixed crown age of the posterior. Set to NA to let it be estimated

n_0

number of starting species

mu

per-species extinction rate

Author

Giovanni Laudanno, Richèl J.C. Bilderbeek

Examples

Run this code
n_taxa <- 31
crown_age <- 41
phylogeny <- create_bd_tree(
  n_taxa = n_taxa,
  crown_age = crown_age
)

Run the code above in your browser using DataLab