Linked_timepoints: Generate Linked Timepoint Sankey + Stacked Bar Chart

View source: R/Stacked_plot.R

Linked_timepointsR Documentation

Generate Linked Timepoint Sankey + Stacked Bar Chart

Description

Creates a highly customizable combined Sankey-flow + stacked bar chart to visualize clonal proportion changes across timepoints, with manual control over flow polygon shapes and precise formatting of top integration sites (top 10 + "Others" category). All core logic and data processing steps remain identical to the original code - only namespace prefixes (::) added and lag() fixed.

Usage

Linked_timepoints(IS_raw, Patient_timepoint, Timelevels = NULL)

Arguments

IS_raw

Data frame containing integration site data (required columns: Clone_contribution, Sample, nearest_gene_name, Chr, Locus)

Patient_timepoint

Data frame mapping Sample_ID to Time_Point (columns: Sample_ID, Time_Point required)

Timelevels

Character vector (optional). Custom ordered levels for time points (overrides natural sort). Default = NULL.

Value

ggplot object. Combined Sankey-flow + stacked bar chart of top 10 integration site proportions across timepoints.


lisat documentation built on March 27, 2026, 5:07 p.m.