Learn R Programming

phytools (version 0.2-40)

plotTree: Plots rooted phylogenetic tree

Description

This function plots a rooted phylogram. Arguments in ... are passed to plotSimmap, with the exception of optional argument color which is used to determine the plotted color of the branch lengths of the tree. Note that the optional argument pts, which is by default pts=TRUE in plotSimmap has the default value of pts=FALSE in plotTree.

Usage

plotTree(tree, ...)

Arguments

tree
a phylogenetic tree in "phylo" format; or multiple trees as an object of class "multiPhylo".
...
optional arguments.

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")

Run the code above in your browser using DataLab