| Linked_timepoints | R Documentation |
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.
Linked_timepoints(IS_raw, Patient_timepoint, Timelevels = NULL)
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. |
ggplot object. Combined Sankey-flow + stacked bar chart of top 10 integration site proportions across timepoints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.