simDiv: Simulate diversification on an adaptive landscape

Description Usage Arguments Details Value Author(s)

View source: R/simDiv.R

Description

Simulate diversification on an adaptive landscape

Usage

1
simDiv(la, mu, r, d, x0, opt0, bsd, ngen)

Arguments

la

function of position in the landscape giving birth rate at that point

mu

function of position in the landscape giving death rate at that point

r

the rate of evolutionary movement in the landscape

d

the critical distance past which a new species is generated

x0

initial trait value of the initializing population

opt0

initial optimal value in the adaptive landscape

bsd

SD of the Brownian drift of the adaptive optimum

ngen

number of generations over which to run the simulation

Details

The adaptiveness of the landscape is determined by the functions la and mu which capture how speciation and extinction change as a function of position in the landscape la, mu, r, d, x0, opt0, bsd, ngen

Value

A phylogeny with tip labels and edge length are derived from the input matrix

Author(s)

Andy Rominger <ajrominger@gmail.com>


ajrominger/adaptive_landscape_div documentation built on Nov. 1, 2019, 9:05 p.m.