powered by
This function binds tips to nodes of a phylogenetic trees.
add.tips(tree, tips, where, edge.length = NULL)
an object of class "phylo".
a character vector containing the names of the tips.
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.
optional numeric vector with edge length
an object of class phylo
bind.tree
# NOT RUN { tree <- rcoal(10) plot(tree) nodelabels() tiplabels() tree1 <- add.tips(tree, c("A", "B", "C"), c(1,2,15)) plot(tree1) # }
Run the code above in your browser using DataLab