Learn R Programming

micropan (version 1.0)

plot.Pantree: Plotting and printing Pantree objects

Description

Generic functions for plotting and printing the content of a Pantree object.

Usage

"plot"(x, leaf.lab=NULL, col="black", xlab="", main="", cex=1, show.boot=TRUE, ...) "summary"(object, ...) "str"(object, ...)

Arguments

x
A Pantree object, see below.
object
A Pantree object, see below.
leaf.lab
Alternative labels for the leaves, see below.
col
Color of the leaf labels, see below.
xlab
Text for the x-axis (distance-axis) of the plotted tree.
main
Title above the plotted tree.
cex
Scaling of the leaf labels of the plotted tree.
show.boot
Logical to turn off plotting of bootstrap values.
...
Additional arguments, see below.

Details

A Pantree object is created by panTree and contains information to display a pan-genome tree. The plot.Pantree function will display the tree as a dendrogram object. The argument leaf.lab can be used to give alternative labels, the GID-tags are used by default. leaf.lab must be a vector of labels, one for each genome in the Pantree. The labels may be in any order, but the vector must be named by the GID-tags, i.e. each element in leaf.lab must have a name which is a valid GID-tag for some genome. This is necessary to ensure the alternative labels are placed correctly in the tree. The argument col specifies the color(s) of the leaf labels in the tree. It can either be a single color or a vector of colors, one for each leaf label (genome). Again, the colors may be in any order, but the vector must be named by the GID-tags, i.e. each element in col must have a name which is a valid GID-tag for some genome. The argument cex scales the leaf label font size. The argument show.boot can be used to turn off the display of bootstrap values. Note that if the tree was constructed without bootstrapping, no bootstrap values are available, and this argument has no effect. Any additional arguments are passed on to the plot.dendrogram function. Both summary.Pantree and str.Pantree prints a short text describing the Pantree object.

See Also

panTree

Examples

Run this code
# See examples in the Help-file for panTree.

Run the code above in your browser using DataLab