Learn R Programming

paleoDiv (version 0.4.0)

convert.sptab: Convert geological ages in taxon-range tables as constructed by mk.sptab() for plotting alongside a time-calibrated phylogeny.

Description

Convert geological ages in taxon-range tables as constructed by mk.sptab() for plotting alongside a time-calibrated phylogeny.

Usage

convert.sptab(sptab, tree = NULL, root.time = tree$root.time)

Value

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.

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

Examples

Run this code
data(archosauria)
data(tree_archosauria)
convert.sptab(archosauria$sptab_Coelophysoidea,tree_archosauria)

Run the code above in your browser using DataLab