ansi_phylo | R Documentation |
Plots a phylogeny in a silly, ANSI graphics style.
ansi_phylo(tree, vertical=c("|","-"), ...)
tree |
object of class |
vertical |
character for vertical lines |
... |
optional arguments. |
A plotted tree.
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.
plotTree
, splinePhylogram
## load trees
data(salamanders)
data(sunfish.tree)
## plot using defaults
ansi_phylo(salamanders)
## plot using special characters
ansi_phylo(sunfish.tree,vertical="//",horizontal="*",
xlim=c(0,0.3),fsize=0.9)
## reset par to default
par(mar=c(5.1,4.1,4.1,2.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.