nodeInfo: Graphical Annotation of Internal Nodes

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
2
nodeInfo(node, label, label2 = NULL, cex = 1, angle = 225, 
    col = "red", lex = 1)

Arguments

node

An integer giving the number of an internal node.

label
label2
cex

Numeric: character expansion factor; multiplied by par("cex") yields the final character size. NULL and NA are equivalent to 1.0.

angle

Numeric: the angle in degree between 0 and 360, counted anti-clock-wise from ...

col
lex

Numeric: length expansion factor.

Value

None.

Author(s)

Christoph Heibl

See Also

clade.bars, box.clades

Examples

 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")

fmichonneau/phyloch documentation built on May 16, 2019, 1:45 p.m.