Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

roundPhylogram

Plot a round phylogram


Description

Function plots one or multiple round phylograms.

Usage

roundPhylogram(tree, fsize=1.0, ftype="reg", lwd=2, mar=NULL, offset=NULL, 
   direction="rightwards", type="phylogram", xlim=NULL, ylim=NULL, ...)

Arguments

tree

an object of class "phylo" or "multiPhylo" containing one or multiple phylogenies.

fsize

relative font size for tip labels.

ftype

font type - options are "reg", "i" (italics), "b" (bold), or "bi" (bold-italics).

lwd

line width for plotting.

mar

vector containing the margins for the plot to be passed to par. If not specified, the default margins are [0.1,0.1,0.1,0.1].

offset

offset for the tip labels.

direction

plotting direction. Only the option direction="rightwards" is presently supported.

type

plot type. Can be "phylogram" or "cladogram". If type="cladogram" then the branch lengths are not necessary (and, indeed, are not used).

xlim

x-limits for the plot.

ylim

y-limits for the plot.

...

optional arguments.

Details

The underscore character "_" is automatically swapped for a space in tip labels, as in plotSimmap.

Value

Plots a tree.

Author(s)

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

Examples

data(mammal.tree)
roundPhylogram(compute.brlen(mammal.tree),
    fsize=0.8,ftype="i")
par(mar=c(5.1,4.1,4.1,2.1)) ## reset margin to default

phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.