get_ltt_tbl: Get a lineage-through-time table

View source: R/get_ltt_tbl.R

get_ltt_tblR Documentation

Get a lineage-through-time table

Description

Pairs the time of every node in the tree with the number of species in the tree at that point in time, i.e. lineages-through-time if the tree is reconstructed, or species-through-time if the tree includes lineages extinct before present.

Usage

get_ltt_tbl(phylo)

Arguments

phylo

an object of the class phylo as introduced in ape. The phylogeny must start with the crown node (not stem), and be binary (no hard polytomies). #' @return a tibble with one observation per node and two variables:

  • time the time relative to present (taken as the latest tip(s) in the tree)

  • N number of lineages or species in the phylogeny at this point in time

Author(s)

Théo Pannetier


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.