Set tip and internal node labels in a tree
PCMTreeSetLabels(tree, labels = as.character(1:PCMTreeNumNodes(tree)), inplace = TRUE)
tree | a phylo object |
---|---|
labels | a character vector in the order 1:PCMTreeNumNodes(tree) as denoted in the tree$edge matrix. |
inplace | a logical indicating if the change should be done in place on the object in the calling environment (in this case tree must not be a temporary object, e.g. returned by another function call). Default is TRUE. |
if inplace = FALSE, a copy of tree with set or modified tree$tip.label and tree$node.label, otherwise nothing.