#' Shuffle tip labels
#' @description Shuffle tip labels of a \code{"phylo"} object
#' @param tree an object of class \code{"phylo"}.
#' @return The same tree with permuted tip labels.
#' @export
#' @importFrom ape rtree
#' @examples
#' (tree <- ape::rtree(8))
#' shuffle_tiplabels(tree)
shuffle_tiplabels <- function(tree){
tree$tip.label <- sample(tree$tip.label)
return(tree)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.