get_PEventsThroughTime: Numbers of different events in parasite evolution.

View source: R/stats.R

get_PEventsThroughTimeR Documentation

Numbers of different events in parasite evolution.

Description

This function records parasites events through time including: Start of time interval, End of time interval, Number of living branches (at the end of time interval), cospeciation events, host shifts, extinction (with hosts surviving), co-extinction (extinction caused by host extinction), speciation events for lineages with surviving descendents

Usage

get_PEventsThroughTime(cophy, tmin = 0, tmax = "max", dt = 1)

Arguments

cophy

a cophylogeny (object of class "cophylogeny") containing one host and one parasite tree.

tmin

the timepoint in the simulation from which parasite events should be recorded, default = 0 (start point for the cophylogeny)

tmax

the timepoint in the simulation until which parasite events should be recorded, default = 'max' (end point for the cophylogeny)

dt

step size for the time points at which calculations are made


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