Description Usage Arguments Note Author(s) See Also Examples
These functions allow to draw boxes around clades/lineages in the plotting of a phylogenetic tree.
1 2 3 4 5 6 7 |
phy |
an object of class |
nodes |
a vector of mode |
col |
colors to fill the boxes with; default is |
border |
colors of the borders of boxes. Use |
shaded |
either |
text |
a character string giving the text to be plotted to the right of the clade. Can be set to |
cex |
numeric, character expansion, i.e. size, for text. |
textcol |
a vector of mode |
rshift |
a numeric used to shift the right boundary of the box further to the right, e.g. to place more text. |
align |
a vector with three possible values: |
expand |
a numerical vector of the form |
... |
further graphical parameters may also be supplied as arguments. |
Do not expect these functions to work with all flavors of plot.phylo
: Currently, box.clades
and box.tips
only work with directions "rightwards"
, "leftwards"
, and "upwards"
with plots of type "phylogram"
and "cladogram"
. The text
argument works only with directions "rightwards"
and "leftwards"
.
box.clades
and box.tips
requires the use of plot.phylo.upon
(see Examples section).
Christoph Heibl
plot.phylo
for plotting of phylogenetic trees; clade.bars
for plotting boxes around tips/clades; tip.color
and edge.color
for coloring tips labels or braches/edges of a plotted tree.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## DATA: phylogentic relationships of bird orders:
## -----------------------------------------------
data(viperidae)
genera <- list("Montivipera", "Macrovipera", "Vipera", "Daboia")
genera.mrca <- noi(viperidae, regex = TRUE, genera)
cls <- c("yellow", "skyblue", "orange", "pink")
## EXAMPLE 1: the defaults of box.clades
## -------------------------------------
#plot(viperidae, edge.color = 0, tip.color = 0, no.margin = TRUE)
#box.clades(viperidae, genera.mrca)
#plot.phylo.upon(viperidae, no.margin = TRUE)
## EXAMPLE 2: the defaults of box.tips
## -------------------------------------
#plot(viperidae, edge.color = 0, tip.color = 0, no.margin = TRUE)
#box.tips(viperidae, genera.mrca)
#plot.phylo.upon(viperidae, no.margin = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.