dendro_plot: Create dendrogram from a clustering object

View source: R/dendrogram.R

dendro_plotR Documentation

Create dendrogram from a clustering object

Description

dendro_plot produces a ggplot dendrogram from an hclust object

Usage

dendro_plot(hclust_obj, categorical_scale = TRUE)

Arguments

hclust_obj

hclust tree to plot

categorical_scale

logical whether the x axis should be categorical or not This affects the space around the axes and whether the tree plot will line up with other plots with categorical axes

Details

This function takes an hclust object and uses ggdendro to produce a ggplot dendrogram.

Value

plot - ggplot2 object

Examples


dendro_plot(cluster_res$clustering)


richysix/biovisr documentation built on Feb. 3, 2024, 4:36 a.m.