plot_gsea_volcano | R Documentation |
Creates a volcano plot for fgsea results, ensuring all significant pathways are labeled with minimal overlap.
plot_gsea_volcano(
gsea_results,
top_n = 20,
pval_cutoff = 0.05,
nes_cutoff = 1,
repel = TRUE,
title = "GSEA Enrichment Volcano Plot"
)
gsea_results |
Data frame output from fgsea. |
top_n |
Number of top enriched pathways to label. |
pval_cutoff |
Adjusted p-value threshold for significance (default: 0.05). |
nes_cutoff |
NES threshold for strong enrichment (default: 1.5). |
repel |
Logical. Use 'ggrepel' for labels (default: TRUE). |
title |
Plot title (optional). |
ranked_genes |
Named vector of ranked log2 fold changes. |
A ggplot object.
gsea_plot <- plot_gsea_volcano(gsea_results, ranked_genes)
print(gsea_plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.