stat_histree: Mapping historical states to a phylo tree

View source: R/edd_phylo.R

stat_histreeR Documentation

Mapping historical states to a phylo tree

Description

Function to map historical states to a phylo tree and output a data frame of segments of the tree

Usage

stat_histree(phy, history)

Arguments

phy

A phylo object, the tree to map historical states to

history

A data frame containing time steps and the historical states of each lineage. The first row of the data frame should be time, which has each time step as a row. The other rows should be named t1, t2, t3, etc, and the names should be in the same order as they speciated. The rows should contain the values of its historical states at each time step. At each time step where a lineage is not present, the value should be NA.

Value

A data frame of the segments of the tree

Author(s)

Tianjian Qin


EvoLandEco/eve documentation built on Sept. 14, 2024, 12:04 a.m.