Learn R Programming

FossilSim (version 2.4.1)

sim.anagenetic.species: Simulate anagenetic species on a taxonomy object

Description

Simulate anagenetic species on a taxonomy object

Usage

sim.anagenetic.species(tree, species, lambda.a)

Value

Object of class taxonomy.

Arguments

tree

Phylo object.

species

Taxonomy object.

lambda.a

Rate of anagenetic speciation. Default = 0.

See Also

taxonomy

Examples

Run this code
t = ape::rtree(10)
sp = sim.taxonomy(t, 1)
sim.anagenetic.species(t, sp, 0.1)

Run the code above in your browser using DataLab