plot_dendrogram: Plot functional dendrogram of epidemic curves

View source: R/plot_dendrogram.R

plot_dendrogramR Documentation

Plot functional dendrogram of epidemic curves

Description

Visualizes the hierarchical clustering of treatments based on functional distances among epidemic curves.

Usage

plot_dendrogram(
  x,
  label_fun = NULL,
  palette = NULL,
  show_cut = TRUE,
  label_size = 2.8
)

Arguments

x

An object of class "functional_distances".

label_fun

Optional function to modify treatment labels.

palette

Optional named vector of colors for clusters.

show_cut

Logical; whether to display the cluster cut height.

label_size

Numeric specifying the font size of the labels. Default is 2.8.

Value

A ggplot object.


r4pde documentation built on Sept. 8, 2026, 1:10 a.m.