Animates a birth-death tree simulation.
tree.grow(..., res=200, direction="rightwards", ladderize=TRUE)
An object of class "phylo"
.
arguments to pass to pbtree
.
number of steps (the resolution of the animation). This also corresponds to the number of frames that will be created if the animation is to be converted to a .gif file.
the direction to plot the tree. Only direction="rightwards"
(the default) and direction="upwards"
are supported.
logical value indicating whether or not to 'ladderize' the plotted tree. (Defaults to TRUE
.)
Liam Revell liam.revell@umb.edu
This function simulates a birth-death tree under user-defined conditions and then creates an animation of that tree growing from left-to-right in the plotting device, or upwards.
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
pbtree