add_dendrogram: Add dendrogram to ggplot object.

View source: R/add_dendrogram.R

add_dendrogramR Documentation

Add dendrogram to ggplot object.

Description

Add dendrogram to ggplot object.

Usage

add_dendrogram(plt, dendro, dend_col = "black", dend_lwd = 0.3, dend_lty = 1)

Arguments

plt

ggplot object to add dendrogram to.

dendro

Dendrogram segment and node data obtained from the prepare_dendrogram function.

dend_col

String specifying colour of dendrogram (used if the colours have not been changed using other options).

dend_lwd

Line width of dendrogram segments (used if not changed using other options).

dend_lty

Line type of dendrogram (used if not changed using other options).

Value

A ggplot object with a dendrogram added.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.