build_pr_distribution_chapters: Build a faceted PR distribution - one small histogram per...

View source: R/plot_pr_distribution.R

build_pr_distribution_chaptersR Documentation

Build a faceted PR distribution - one small histogram per chapter

Description

Interactive (ggiraph): clicking a chapter facet returns its chapter_id.

Usage

build_pr_distribution_chapters(
  data,
  d1_name,
  d2_name,
  scale_mode = "fold",
  fold_thresh = FOLD_THRESHOLD,
  domain_label = "conditions"
)

Arguments

data

Filtered meta_summary joined with chapters (one row per concept x chapter). Expected columns: log2_pr, fold_diff, sig, concept_id, chapter_name, chapter_id.

d1_name

Name of reference dataset.

d2_name

Name of comparison dataset.

scale_mode

"fold" or "log2".

fold_thresh

Fold difference threshold.

domain_label

Label for domain.

Value

A girafe object. Selection data_id = chapter_id (character).


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