{
  "name": "R functions for drawing GSEA enrichment plots: package, output and documented options",
  "description": "Compares five plot functions in the fgsea and enrichplot R packages by what each draws, how many gene sets one call plots and the options shown in the packages' own tutorial and the YuLab GSEA visualisation chapter. Compiled from those two documents, read 2026-11-13.",
  "page": "https://casrai.org/guides/gsea-plot",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:07:24Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Package",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it draws",
      "unit": "",
      "description": ""
    },
    {
      "name": "Gene sets per call",
      "unit": "",
      "description": ""
    },
    {
      "name": "Options shown in the documentation",
      "unit": "",
      "description": ""
    },
    {
      "name": "Source",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "plotEnrichment",
      "Package": "fgsea",
      "What it draws": "Enrichment plot for one pathway",
      "Gene sets per call": "One",
      "Options shown in the documentation": "Pathway vector and ranked statistics; ggplot2 layers such as labs(title=...) can be added",
      "Source": "Bioconductor fgsea tutorial"
    },
    {
      "Function": "plotGseaTable",
      "Package": "fgsea",
      "What it draws": "Table-style figure of many pathways",
      "Gene sets per call": "Many (tutorial uses top 10 with ES > 0 and top 10 with ES < 0)",
      "Options shown in the documentation": "gseaParam (tutorial uses 0.5)",
      "Source": "Bioconductor fgsea tutorial"
    },
    {
      "Function": "gseaplot2",
      "Package": "enrichplot",
      "What it draws": "Three stacked panels: running enrichment score, hit ticks with coloured bins, ranked list metric",
      "Gene sets per call": "One or several (geneSetID = 1 or 1:3)",
      "Options shown in the documentation": "title, pvalue_table, color, ES_geom, pvalue_table_rownames, pvalue_table_columns, subplots",
      "Source": "YuLab Biomedical Knowledge Mining: GSEA visualization"
    },
    {
      "Function": "gseaplot",
      "Package": "enrichplot",
      "What it draws": "Running score and preranked list for one gene set",
      "Gene sets per call": "One",
      "Options shown in the documentation": "by (runningScore or preranked), color, color.line, color.vline, title",
      "Source": "YuLab Biomedical Knowledge Mining: GSEA visualization"
    },
    {
      "Function": "gsearank",
      "Package": "enrichplot",
      "What it draws": "Ranked list for one gene set",
      "Gene sets per call": "One",
      "Options shown in the documentation": "output = table returns gene, rank in geneList, running ES, core enrichment",
      "Source": "YuLab Biomedical Knowledge Mining: GSEA visualization"
    }
  ],
  "sources": [
    {
      "title": "Bioconductor fgsea tutorial",
      "url": "https://bioconductor.org/packages/release/bioc/vignettes/fgsea/inst/doc/fgsea-tutorial.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "YuLab Biomedical Knowledge Mining: GSEA visualization",
      "url": "https://yulab-smu.top/biomedical-knowledge-mining-book/enrichplot-gsea.html",
      "accessed": "2026-11-13"
    }
  ]
}