Tianjian Qin

Evolution emulator, phylogenetically dependent.

EVE

This R package contains functions to simulate evolutionary relatedness dependent diversification processes.

How to install

                        require(remotes)
remotes::install_github("EvoLandEco/evesim")
                    

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
                    

Have a question?

Feel free to click on the button below to send me a message.

Choose Colour