dot-transNode: Transfer between node number and node label

.transNodeR Documentation

Transfer between node number and node label

Description

transNode does the transformation between the number and the label of a node on a tree

Usage

.transNode(tree, node, use.alias = FALSE, message = FALSE)

Arguments

tree

A phylo object

node

A character or numeric vector representing tree node label(s) or tree node number(s)

use.alias

A logical value, TRUE or FALSE. This is an optional argument that only requried when the input node is a numeric vector. The default is FALSE, and the node label would be returned; otherwise, the alias of node label would be output. The alias of node label is created by adding a prefix "alias_" to the node number.

message

A logical value, TRUE or FALSE. The default is FALSE. If TRUE, message will show when a tree have duplicated labels for some internal nodes.

Value

a vector

Author(s)

Ruizhu Huang


fionarhuang/TreeHeatmap documentation built on Feb. 1, 2024, 7:30 a.m.