GSEAplot.RdGenerate plot that mimic the Gene Set Enrichment computational analysis published by the Broad Institute
GSEAplot(
  seu,
  group.by = NULL,
  geneset,
  ident.1 = NULL,
  ident.2 = NULL,
  cells = NULL,
  slot = "data",
  assay = NULL,
  logFC.cutoff = c(-1, 1),
  p.position = c(0.8, 0.85),
  sample = 500,
  title = deparse(substitute(geneset))
)Seurat object
A variable name in meta.data to group the violin plots by, or string with the same length of cells
A list of genes
Cell type name
(Optional) Second cell type name to compare with 'ident.1'
Cell names to use, Default: all cells
Slot to pull feature data for, Default: 'data'
Name of assay to use, defaults to the active assay
Range of Log2 fold change of ranked genes, Default: c(-1, 1)
Where to put ES and p value text, Default: c(0.8, 0.85)
Points used for drawing curves. Default: 500
Title of geneset
Plot
P value is calculated using Kolmogorov-Smirnov Tests
GSEAplot(
  pbmc, ident.1 = "CD4 T Naive", title = "INTERFERON_GAMMA_RESPONSE",
  geneset = hall50$human$HALLMARK_INTERFERON_GAMMA_RESPONSE)