View source: R/branching.diffusion.R
| branching.diffusion | R Documentation |
This function creates an animation of branching random diffusion (i.e., Brownian motion evolution with speciation).
branching.diffusion(sig2=1, b=0.0023, time.stop=1000, ylim=NULL,
smooth=TRUE, pause=0.02, record=NULL, path=NULL, ...)
sig2 |
variance of BM process, |
b |
birthrate for branching process. |
time.stop |
number of generations to run. |
ylim |
y limits (for plotting). |
smooth |
no longer used. |
pause |
pause (in s) between generations. |
record |
filename for video file output (no video if |
path |
full path to file for video rendering. (By default |
... |
optional arguments. |
For animation to be recorded to file, the function requires the package animation as well as a video renderer.
An animated plot and (optionally) a recorded video file.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
bmPlot, fastBM
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.