Learn R Programming

phytools (version 1.2-0)

roundPhylogram: Plot a round or sigmoidal phylogram or cladogram

Description

Function plots one or multiple round phylograms or a sigmoidal phylogram or cladogram.

Usage

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

Value

Plots a tree.

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. In the case of roundPhylogram, these are mostly as in plotTree and plotSimmap.

Author

Liam Revell liam.revell@umb.edu

Details

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

References

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

See Also

plotSimmap, plotTree

Examples

Run this code
data(mammal.tree)
roundPhylogram(compute.brlen(mammal.tree),
    fsize=0.8,ftype="i")
data(anoletree)
sigmoidPhylogram(anoletree,fsize=0.6,
	ftype="i",direction="upwards")
par(mar=c(5.1,4.1,4.1,2.1)) ## reset margin to default

Run the code above in your browser using DataLab