% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prune.R \name{prune_leaf} \alias{prune_leaf} \title{Trims one leaf from a dendrogram} \usage{ prune_leaf(dend, leaf_name, ...) } \arguments{ \item{dend}{dendrogram object} \item{leaf_name}{a character string as the label of the tip we wish to prune} \item{...}{passed on} } \value{ A dendrogram with a leaf pruned } \description{ Trims (prunes) one leaf from a dendrogram. } \details{ Used through \link{prune} } \examples{ hc <- hclust(dist(USArrests[1:5, ]), "ave") dend <- as.dendrogram(hc) par(mfrow = c(1, 2)) plot(dend, main = "original tree") plot(prune_leaf(dend, "Alaska"), main = "tree without Alaska") }