build_heatmap: Build an interactive heatmap of prevalence ratios

View source: R/plot_heatmaps.R

build_heatmapR Documentation

Build an interactive heatmap of prevalence ratios

Description

Build an interactive heatmap of prevalence ratios

Usage

build_heatmap(
  data,
  name1,
  name2,
  scale_mode = "log2",
  concept_weights = NULL,
  concept_order = NULL
)

Arguments

data

Data frame with meta_agegroups data (concept_id, concept_name, concept_code, sex, age_group, log2_pr, ci_low, ci_high, p_value).

name1

Reference dataset name.

name2

Comparison dataset name.

scale_mode

"fold" or "log2" for axis labels.

concept_weights

Data frame with concept_id, concept_name, pop_weight.

concept_order

Vector of concept_ids in desired display order.

Value

A girafe object.


syrona documentation built on Sept. 5, 2026, 1:06 a.m.