This function creates an animation of branching random diffusion (i.e., BM with speciation).
branching.diffusion(sig2=1, b=0.0023, time.stop=1000, ylim=NULL,
smooth=TRUE, pause=0.02, record=NULL, path=NULL)variance of BM process.
birthrate for branching process.
number of generations to run.
y limits (for plotting).
no longer used.
pause (in s) between generations.
filename for video file output (no video if NULL).
full path to file for video rendering (by default is C:/Program Files/ffmpeg/bin/ffmpeg.exe).
An animated plot and (optionally) a recorded video file. For animation to be recorded to file, the function requires the package "animation" as well as a video renderer.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.