node_labels: Adds node labels to an existing tree plot

View source: R/plot_tree_annots.R

node_labelsR Documentation

Adds node labels to an existing tree plot

Description

Adds node labels to an existing tree plot

Usage

node_labels(tree, col = "blue", cex = 1, b_include_tips = FALSE)

Arguments

tree

enhanced phylo returned by plot_tree

col

character. Colour specification for labels

cex

numeric. Size of labels

b_include_tips

boolean. Wether to include tips #' @return simpop object

Examples

test=rtree(20)
tree=plot_tree(test,cex.terminal=0.5,bars=sapply(sprintf("s%d",seq(2,20,2)),function(x) runif(1)))
node_labels(tree)


NickWilliamsSanger/rsimpop documentation built on Sept. 6, 2024, 12:42 a.m.