
Plot Phylostratum Contribution to Transcriptomic Index
Source:R/plot_contribution.R
plot_contribution.Rd
Create a stacked area plot showing the contribution of each phylostratum to the overall transcriptomic index across developmental stages or cell types.
Usage
plot_contribution(phyex_set, type = c("stacked", "line"))
Details
This function visualizes how different phylostrata contribute to the overall transcriptomic index pattern across developmental stages (bulk data) or cell types (single-cell data). Each area represents the contribution of a specific phylostratum, with older strata typically shown in darker colors and younger strata in lighter colors.
The plot uses the PS_colours function to create a consistent color scheme that matches other myTAI visualizations.