Description Usage Arguments Details Value Author(s) See Also Examples
This function can be used to render scientific names taxonomically correctly when plotting phylogenies.
1 2 3 |
phy |
An object of class |
cex |
A real number, giving the character expension (see |
offset |
A real number giving the horizontal offset between tips and tip labels. |
col |
A character string, giving the color(s) to be used for the tip labels). |
align |
Logical, if |
auto.correction |
Logical; if |
s |
A vector of mode |
lty |
A numeric, giving the line type if |
lcol |
A character string, giving the line color if |
Use plot.phylo
with the tip.color
argument set to 0
to suppress plotting of the tip labels. This gets you the correct extension of the plotting region, which would not be the case with show.tip.label = FALSE
.
None.
Christoph Heibl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # molecular phylogeny of Eurasian vipers:
# ---------------------------------------
data(viperidae)
# plot phylogeny: strings contained in 's' will be
# in plain font type and the corresponding tips labels
# colored brown; note the use of 'tip.color = 0' in
# 'plot.phylo'
# ----------------------------------------------------
s <- c("ssp.", "var.", "spec.", "cf.", "agg.", "syn.")
tcol <- tip.color(viperidae, s, col = "brown")
plot.phylo(viperidae, tip.color = 0)
taxo.fonts(viperidae, col = tcol)
# align tip labels:
# here we need to set the x.lim argument in plot.phylo
# ----------------------------------------------------
plot.phylo(viperidae, tip.color = 0, x.lim = c(0, 1.3))
taxo.fonts(viperidae, align = TRUE, offset = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.