Tianjian Qin, Luis Valente, Rampal Etienne. Impact of evolutionary relatedness on species diversification and tree shape. BioRXiv. DOI: https://doi.org/10.1101/2023.11.09.566365
How to use
library(evesim)
library(ape)
# Optionally set the number of threads.
# Defaults to number of logical cores.
RcppParallel::setThreadOptions(numThreads = 1)
# Simulation
pars = c(0.5, 0.1, -0.001, -0.001, 0.0, 0.0)
sim <- edd_sim(pars = pars, age = 10, metric = "nnd", offset = "none")
# Plot extant tree
plot(sim$tes)
# Plot complete tree
plot(sim$tas)
# L table
sim$L