Learn R Programming

topolow (version 1.0.0)

plot_distance_heatmap: Plot Distance Matrix Heatmap

Description

Creates heatmap visualization of distance matrix showing patterns and structure in the measurements.

Usage

plot_distance_heatmap(
  heatmap_data,
  output_file = NULL,
  aesthetic_config = new_aesthetic_config(),
  layout_config = new_layout_config()
)

Value

A ggplot object containing:

  • Heatmap visualization of the distance matrix

  • Color gradient representing distance values

  • Title showing matrix completeness percentage

Arguments

heatmap_data

List output from prepare_heatmap_data()

output_file

Character. Full path (including filename and extension) where the plot will be saved. If NULL, the plot is not saved.

aesthetic_config

Plot aesthetic configuration object

layout_config

Plot layout configuration object

Examples

Run this code
# Create sample heatmap data
dist_mat <- matrix(rnorm(100), 10, 10)
hmap_data <- prepare_heatmap_data(dist_mat)

# Create and display the plot object
plot_distance_heatmap(hmap_data)

Run the code above in your browser using DataLab