Description Usage Arguments Value Author(s) See Also Examples
This function can be used to graphically highlight internal nodes in a phylogentic tree. A character string giving attributes of the node can also be drawn as a framed textbox.
1 2 |
node |
An integer giving the number of an internal node. |
label |
|
label2 |
|
cex |
Numeric: character expansion factor; multiplied by |
angle |
Numeric: the angle in degree between 0 and 360, counted anti-clock-wise from ... |
col |
|
lex |
Numeric: length expansion factor. |
None.
Christoph Heibl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # load a small phylogeny ...
data(vipera)
# and plot it.
plot(vipera.bayes)
# Find a certain internal node ...
p <- noi(vipera.bayes, c("Vipera_dinniki", "Vipera_berus"))
# ... which should be bear the following text ...
txt <- expression(paste("subgenus ", italic(Pelias)))
# and plot the information:
nodeInfo(p, txt, angle = 140, cex = 0.75, lex = 3)
# The position of the text can also be adjusted manually by
# clicking on the plot:
nodeInfo(15, "It's easy!", angle = NULL, cex = 2, col = "blue")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.