Learn R Programming

phytools (version 0.1-9)

plotTree: Plots rooted phylogenetic tree

Description

This function plots a rooted phylogram.

Usage

plotTree(tree,color=NULL,fsize=1.0,ftype="reg",lwd=2,pts=TRUE,node.numbers=FALSE)

Arguments

tree
a phylogenetic tree in "phylo" format; or multiple trees as an object of class "multiPhylo".
color
color for the branches of the tree.
fsize
a numeric value specifying relative font size for tip labels.
ftype
a string specifying which font type to use. Options are: "reg","b","i", "bi", and "off".
lwd
a numeric value specifying edge width.
pts
a logical value indicating whether to plot points at nodes.
node.numbers
a logical value indicating whether or not node numbers should be plotted.

Value

  • This function plots a rooted phylogram.

See Also

plot.phylo, plotSimmap

Examples

Run this code
tree<-pbtree(n=25)
plotTree(tree,color="blue",ftype="i",pts=FALSE)

Run the code above in your browser using DataLab