Description Usage Arguments Details Value Author(s) See Also Examples
This function allows to add text or symbols to the tip labels of a phylogenetic tree
1 2 |
phy |
an object of class |
tips |
a vector of mode |
offset |
a real, used to control the horizontal offset of text or symbols from the tip labels of the phylogenetic tree. |
align |
logical, if |
grid |
logial, if |
col |
a character string, setting the color for text of symbols |
text |
a character string, giving the text to be appended to the tip labels |
pch |
an integer, specifying the symbol used (see |
cex |
a real number, giving the character expension (see |
... |
further graphical parameters (from par), such as srt, family and xpd. |
Currently, append2tips
is will work only for plot.phylo
using types "phylogram"
or "cladogram"
and directions "rightwards"
or "leftwards"
.
None.
Christoph Heibl
plot.phylo
, tiplabels
, taxo.fonts
1 2 3 4 5 6 7 8 9 10 11 12 | # phylogeny of true vipers
# ------------------------
data(viperidae)
plot.phylo(viperidae, cex = 0.8, label.offset = 0.02, x.lim = 1.5)
NTips <- length(viperidae$tip.label)
append2tips(viperidae, text =
paste("A", 1:NTips, sep = "-"), col = "orange")
append2tips(viperidae, tips <- c(5, 7:9, 14),
text = rep("xxx", 5), col = "slateblue")
append2tips(viperidae, pch = 23, col = rainbow(NTips))
append2tips(viperidae, pch = 21, col = "grey50",
align = TRUE, grid = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.