Learn R Programming

phytools (version 2.4-4)

ansi_phylo: Graph a phylogeny using only ANSI characters

Description

Plots a phylogeny in a silly, ANSI graphics style.

Usage

ansi_phylo(tree, vertical=c("|","-"), ...)

Value

A plotted tree.

Arguments

tree

object of class "phylo".

vertical

character for vertical lines

...

optional arguments.

Author

Liam Revell liam.revell@umb.edu

References

Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.

See Also

plotTree, splinePhylogram

Examples

Run this code
## 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))

Run the code above in your browser using DataLab