Make calibration table compatible with ape's 'chronos'
chronos_calib(specimens, tree, level = "genus")
specimens | list of objects of class Specimen, must have chronostratigraphy information |
---|---|
tree | object of class 'phylo' |
level | character giving taxonomic level |
Given a list of specimen objects, and a phylogenetic tree, makes a calibration table that is compatible with the 'chronos' function from the 'ape' package. This can be done for various taxonomic levels
Other utils: geo_age
# get specimen with chronostratigraphic data sc <- SpecimenClient$new() sp <- sc$find_by_unit_id("RGM.156532")$content # load tree library('ape') data(shark_tree) # make calibration table chronos_calib(sp, shark_tree, "genus")#> node age.min age.max soft.bounds taxon #> 1 320 5.33 15.97 FALSE Isurus