Convert geological ages in taxon-range tables as constructed by mk.sptab() for plotting alongside a time-calibrated phylogeny.
Convert geological ages in taxon-range tables as constructed by mk.sptab() for plotting alongside a time-calibrated phylogeny.
convert.sptab(sptab, tree =NULL, root.time = tree$root.time)
Arguments
sptab: Taxon-range table to convert
tree: Optional phylogenetic tree to draw root.time from
root.time: Root time of the tree, used for converting ages
Returns
A data.frame() object in the format of the original taxon-range table, but with geological ages converted for plotting alongside the the phylogenetic tree.