Plot Match-Counting vs MalReBay Comparison Heatmap
Source:R/plot_utils.R
plot_comparison_heatmap.RdVisualizes the WHO match-counting rules (loose and strict) alongside MalReBay's posterior probability, one heatmap per site, from the bayesian_match_counting_comparison table after it's been passed through build_who_table().
Usage
plot_comparison_heatmap(
summary_results,
marker_info,
output_folder = NULL,
title_prefix = "",
verbose = TRUE
)Arguments
- summary_results
A list returned by
summarise_results, containing acomparisondata frame (Bayesian probabilities plus traditional match-counting results).- marker_info
Marker metadata from
import_data, passed on tobuild_who_table()to derive the WHO_loose/WHO_strict columns.- output_folder
A string specifying the directory where one PNG per site will be saved. If
NULL, heatmaps are drawn on the current graphics device instead.- title_prefix
Optional prefix before the site name in each plot's title.
- verbose
Logical. If
TRUE, prints a message when each file is saved.