recluster.check <-function(tree, tip) {
ind <- match(tip, tree$tip.label)
tree$tip.label <- tree$tip.label[ind]
ind2 <- match(1:length(ind), tree$edge[, 2])
tree$edge[ind2, 2] <- order(ind)
tree
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.