place.fossils | R Documentation |
If "ext.tree" is not supplied, this function will find the direct ancestral node for each of the supplied fossil samples. If "ext.tree" is supplied, this function will find the direct ancestral node for each fossil in "ext.tree". This second behaviour is used for placing fossils simulated on a complete Birth-Death tree in the extant-only counterpart tree. This results in fossil samples being placed in the crown clades of the tree upon which they were simulated. When "ext.tree" is supplied, any fossil samples appearing before the MRCA of the crown group are discarded.
place.fossils(tree, fossils, ext.tree)
tree |
an object of class "Phylo". |
fossils |
an object of class "fossils" that corresponds to fossil occurrences for the "tree" argument. |
ext.tree |
an object of class "Phylo" representing the extant counterpart to "tree", this can be obtained with prune.fossil.tips(tree). |
a vector of node numbers corresponding to the direct ancestor of each fossil sample in "fossils".
t = TreeSim::sim.bd.taxa(10, 1, 0.1, 0.05)[[1]] f = sim.fossils.poisson(0.1, t, root.edge = FALSE) place.fossils(t,f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.