add.tips

0th

Percentile

Add tips to a tree

This function binds tips to nodes of a phylogenetic trees.

Keywords
cluster
Usage
add.tips(tree, tips, where, edge.length = NULL)
Arguments
tree

an object of class "phylo".

tips

a character vector containing the names of the tips.

where

an integer or character vector of the same length as tips giving the number of the node or tip of the tree x where the tree y is binded.

edge.length

optional numeric vector with edge length

Value

an object of class phylo

See Also

bind.tree

Aliases
  • add.tips
Examples
# NOT RUN {
tree <- rcoal(10)
plot(tree)
nodelabels()
tiplabels()
tree1 <- add.tips(tree, c("A", "B", "C"), c(1,2,15))
plot(tree1)
# }
Documentation reproduced from package phangorn, version 2.5.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.