Creates animation of branching random diffusion (i.e., BM with speciation).
branching.diffusion(): This function creates an animation of discrete time branching random diffusion.
Input
branching.diffusion(sig2=1,b=0.0023,time.stop=1000,ylim=NULL,smooth=TRUE,pause=0.02,record=NULL,path=NULL)
"sig2" is the BM rate;
"b" is the birthrate;
"time.stop" is the number of generations to run;
"ylim" is a vector of the vertical limits of the plot;
"smooth" is a logical value indicate whether to create a smooth animation while simulating;
"pause" is the break between frames;
"record" is the filename for the video output file - if NULL will not record;
"path" is the path to ffmpeg.exe for video rendering - by default is C:/Program Files/ffmpeg/bin/ffmpeg.exe.
Citation
Function written by Liam J. Revell 2011.
home
Last modified May 5, 2011.