paleotree.record.to.fossils | R Documentation |
The returned tree is in paleotree format, with zero-length edges leading to tips at bifurcation and anagenetic events. Fossils and taxonomy are only specified on non-zero-length edges. The label assigned to the parent of the origin or root will be zero.
paleotree.record.to.fossils(record)
record |
fossilRecordSimulation object. |
A list containing the converted tree, taxonomy and fossils
taxonomy
, fossils
, fossils.to.paleotree.record
if (requireNamespace("paleotree", quietly = TRUE)) {
# simulate record
record = paleotree::simFossilRecord(p=0.1, q=0.1,r=0.1, nruns=1, nTotalTaxa=c(30,40),
nExtant=0, nSamp = c(5,25))
# transform format
l_tf = paleotree.record.to.fossils(record)
l_tf$tree
l_tf$taxonomy
l_tf$fossils
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.