Learn R Programming

ggcorrheatmap (version 0.1.2)

add_dendrogram: 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)

Value

A ggplot object with a dendrogram added.

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).