plot.tree {genealogy} | R Documentation |
A function to produce a graphical representation of a tree object.
plot.tree(t, horizontal = F, labels = F, cex.lab = 0.8, timeaxis = F, maxtime, ...)
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 |
Used for its side effect. Nothing returned.
....
~~further notes~~
Ian Wilson
~put references to the literature/web site here ~
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)