This function creates a plot to visualize GSEA results, showing the enriched gene set. It can optionally add statistical significance indicators between groups.
Usage
plot_gsea_enriched(
gsea.obj,
gene_set,
gene_set_title = NULL,
gene_set_title_size = 10,
show.pval = TRUE,
show.fdr = TRUE,
save_plot = T,
save_dir = getwd()
)Arguments
- gene_set
Name of the gene set to plot
- gene_set_title
Title of the plot. Default is the gene set name
- show.pval
Logical. If TRUE, shows p-value in the plot. Default is TRUE
- show.fdr
Logical. If TRUE, shows FDR in the plot. Default is TRUE
- save_plot
Logical. If TRUE, saves the plot to PDF. Default is TRUE
- save_dir
Directory to save the plot. Default is current working directory
- gsea
GSEA result object from run_gsea()
- gene_set_title.size
Size of the title text. Default is 8