node.tree: Makes node labels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/node.tree.R

Description

This function makes node labels in a tree keeping already existing node names. This function is based in the function makeNodeLabel.

Usage

1
node.tree(tree, m = 0, prefix = "NodE")

Arguments

tree

phylogeny as an object of class "phylo".

m

One number to starting sequence (default m = 0).

prefix

The prefix (default prefix = "NodE")

Value

A list with:

call

The call arguments.

m.start

The start m value.

m.current

The new m value, the difference between m.start and m.current is the number of node names created.

prefix

Prefix used.

tree

The tree, class "phylo".

Author(s)

Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>

See Also

makeNodeLabel

Examples

1
2
3
4
tree <- read.tree(text = "(C:32,(B:16,A:16):16);")
plot(tree, show.node = TRUE)
tree <- node.tree(tree, m = 0, prefix = "N")$tree
plot(tree, show.node = TRUE)

vanderleidebastiani/daee documentation built on Jan. 22, 2021, 2:41 p.m.