I am using the gseaplot2 function from enrichplot to mimic the GSEA figure that comes from the software. I would like to add the NES value to the plot, and tried editing the function but results in a error.
The function used is
gseaplot2(GSEAobject, geneSetID = 1, title = GSEAobject$Description,pvalue_table = TRUE)
I tried editing the gseaplot2 function to include the NES value in the pvalue_table part of the function but the error I get is
Error in x$children[[i]] : no such index at level 1
Source of the function at gseaplot2