plot.tree {genealogy}R Documentation

Plot Genealogical Trees

Description

A function to produce a graphical representation of a tree object.

Usage

plot.tree(t, horizontal = F, labels = F, cex.lab = 0.8, timeaxis = F, maxtime, ...)

Arguments

t An object of class tree
horizontal Produce a vertical (default) or horizontal plot.
labels Supply labels to the tree leaves, or if labels =T try to use the labels variable within the tree).
cex.lab Size of the labels
timeaxis Put a time axis on the plot? If this is used then maxtime must be supplied
maxtime The maximum time that is displayed.
... Other graphical parameters

Value

Used for its side effect. Nothing returned.

WARNING

....

Note

~~further notes~~

Author(s)

Ian Wilson

References

~put references to the literature/web site here ~

See Also

plot.migtree

Examples

plot(coal1(20));
plot(coal1(20),labels=1:20);
plot(coal1(20),labels=LETTERS[1:20],horizontal=T);
plot(coal1(20),labels=letters[1:20],horizontal=T,timeaxis=3,maxtime=3);
### display the variability of coalescent trees
opar <- par(mfrow=c(4,4))
for (i in 1:16) plot(coal1(10),maxtime=4)
par(opar)

[Package genealogy version 0.01 Index]