This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to plot all enrichment plots from GSEA in one single plot in python or R?

How to plot all enrichment plots for all gene sets from GSEA in one single plot in python or R?

After performing GSEA I got the report which has the enrichment plots but every enrichment plot is alone, I want to put all plots in one single plot, how can I do it and which data I need to use?

Thanks

r python es gsea

You need to post your code.

I am trying to use gseaplot(df, geneSetID=1) but I got that error

TypeError: gseaplot() missing 6 required positional arguments: 'term', 'hits', 'nes', 'pval', 'fdr', and 'RES'

Although in the document:

library(DOSE)
data(geneList)
x <- gseDO(geneList)
gseaplot(x, geneSetID=1)

1 answer

Use the patchwork library to combine your plots. +

Log in to answer this question.