Learn R Programming

pirouette (version 1.6.9)

create_yule_tree: Create a Yule tree.

Description

A Yule model is also known as a pure-birth model; a birth-death model without extinction.

Usage

create_yule_tree(n_taxa = 6, crown_age = 10, n_0 = 2)

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

Author

Giovanni Laudanno, Richèl J.C. Bilderbeek

Examples

Run this code
n_taxa <- 31
crown_age <- 41

create_yule_tree(
  n_taxa = 31,
  crown_age = 41
)

Run the code above in your browser using DataLab