powered by
Simulate a taxonomy object relating species identity to a phylo object under a mixed model of speciation. Anagenetic and cryptic species can also be added later using the sim.anagenetic.species and sim.cryptic.species functions.
sim.anagenetic.species
sim.cryptic.species
sim.taxonomy(tree, beta = 0, lambda.a = 0, kappa = 0, root.edge = TRUE)
An object of class taxonomy.
Phylo object.
Probability of bifurcating speciation. Default = 0.
Rate of anagenetic speciation. Default = 0.
Probability that speciation event is cryptic. Default = 0.
If TRUE include root edge. Default = TRUE.
taxonomy
t = ape::rtree(10) sim.taxonomy(t, 0.5, 0.1, 0.5)
Run the code above in your browser using DataLab