View source: R/plot_tree_annots.R
node_labels | R Documentation |
Adds node labels to an existing tree plot
node_labels(tree, col = "blue", cex = 1, b_include_tips = FALSE)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.