fossils.to.paleotree.record | R Documentation |
Transforms a fossils dataframe and either taxonomy or tree into a fossilRecordSimulation object from package paleotree.
fossils.to.paleotree.record(fossils, tree = NULL, taxonomy = NULL)
fossils |
fossils object |
tree |
phylo object containing the tree. If provided and taxonomy = NULL, all speciation is assumed symmetric |
taxonomy |
taxonomy object. If both tree and taxonomy are provided, only taxonomy will be used. |
The converted paleotree record
taxonomy
, fossils
, paleotree.record.to.fossils
# simulate tree t = ape::rtree(6) # simulate fossils using taxonomy s = sim.taxonomy(t, 0.5, 1, 0.5) f = sim.fossils.poisson(2, taxonomy = s) # transform format record = fossils.to.paleotree.record(f, taxonomy = s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.