Learn R Programming

phytools (version 0.2-40)

branching.diffusion: Animation of branching random diffusion

Description

This function creates an animation of branching random diffusion (i.e., BM with speciation).

Usage

branching.diffusion(sig2=1, b=0.0023, time.stop=1000, ylim=NULL, 
     smooth=TRUE, pause=0.02, record=NULL, path=NULL)

Arguments

sig2
variance of BM process.
b
birthrate for branching process.
time.stop
number of generations to run.
ylim
y limits (for plotting).
smooth
if TRUE, smoother plotting (but slower).
pause
pause (in s) between generations.
record
filename for video file output (no video if NULL).
path
path to file for video rendering (by default is C:/Program Files/ffmpeg/bin/ffmpeg.exe).

Value

  • None.

See Also

fastBM