get_branchNThroughTime: Branch (species) numbers through time.

View source: R/stats.R

get_branchNThroughTimeR Documentation

Branch (species) numbers through time.

Description

Calculates the number of living species at particular time intervals of a simulation. Applicable for both host and parasite phylogenies.

Usage

get_branchNThroughTime(phy, tmax, startT = 0, dt)

Arguments

phy

a phylogeny (object of APE class "phylo").

tmax

maximum time for which to simulate; may be greater than the actual tree length.

startT

the timepoint at which the lineage began simulating.

dt

step size for performing calculations.


JanEngelstaedter/cophy documentation built on Nov. 7, 2023, 9:37 a.m.