Description Usage Arguments Value Author(s) See Also Examples
For any given internal node in a phylogeny, this function returns the sister clade
1 |
phy |
an object of class |
node |
an integer giving the number of the node. |
type |
a character string, may be |
A vector containing node numbers.
Christoph Heibl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # data
# ----
data(vipera)
node <- noi(vipera.ml, c("Vipera_latastei", "Vipera_aspis"))
# get the sister node of 'node'
# -----------------------------
(sn <- sister(vipera.ml, node, type = "internal"))
# ... and the sister nodes's tips (i.e. the sister clade)
# -------------------------------------------------------
(sc <- sister(vipera.ml, node, type = "terminal"))
# results graphically:
# --------------------
plot(vipera.ml)
nodelabels(text = "15", node = 15, frame = NULL, col = "white", bg = "black")
nodelabels(text = sn, node = sn, col = "black", bg = "red")
#append2tiplabel(tree, tips = sc, pch = 21, offset = strwidth("."))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.