View source: R/reconcile.fossils.taxonomy.R
reconcile.fossils.taxonomy | R Documentation |
This function uses edge identifiers (edge
) and fossil sampling times (hmin
) to reassign fossil species identifiers (sp, origin
) using an existing taxonomy object.
It can only be used if exact fossil sampling times are known (i.e. hmin = hmax
), otherwise edges containing multiple species may be indistinguishable.
reconcile.fossils.taxonomy(fossils, taxonomy)
fossils |
Fossils object. |
taxonomy |
Taxonomy object. |
An object of class fossils.
# simulate tree t = ape::rtree(6) # simulate fossils using the tree rate = 2 f = sim.fossils.poisson(rate, tree = t) plot(f, t) # simulate fossils using taxonomy s = sim.taxonomy(t, 0.5, 1, 0.5) f = reconcile.fossils.taxonomy(f, s) plot(f, t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.