sim.taxonomy: Simulate taxonomy

Description Usage Arguments Value See Also Examples

View source: R/sim.taxonomy.R

Description

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.

Usage

1
sim.taxonomy(tree, beta = 0, lambda.a = 0, kappa = 0, root.edge = TRUE)

Arguments

tree

Phylo object.

beta

Probability of bifurcating speciation. Default = 0.

lambda.a

Rate of anagenetic speciation. Default = 0.

kappa

Probability that speciation event is cryptic. Default = 0.

root.edge

If TRUE include root edge. Default = TRUE.

Value

An object of class taxonomy.

See Also

taxonomy

Examples

1
2
t = ape::rtree(10)
sim.taxonomy(t, 0.5, 0.1, 0.5)

FossilSim documentation built on April 6, 2021, 1:06 a.m.