plotES: Plot enrichment score for one transcription factor

View source: R/plotES.R

plotESR Documentation

Plot enrichment score for one transcription factor

Description

Plot GSEA style enrichment score curve.

Usage

plotES(
  TFEAresults,
  TF,
  outfolder = ".",
  xlab = "rank",
  ylab = "Enrichment",
  resolution = 500L,
  device = "pdf",
  ...
)

Arguments

TFEAresults

A TFEAresults object. Output of TFEA.

TF

A character vector. The transcription factor names.

outfolder

character(1). Output file path.

xlab, ylab

character string giving label for x-axis/y-axis.

resolution

integer(1). The number of bars plotted in the bottom of figure to show the density of occurrence of events.

device

Device to use. Can be one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).

...

parameter passed to ggsave.

Value

NULL if outfolder is set or ggplot object.

Examples

res <- system.file("extdata", "res.rds", package="ATACseqTFEA")
res <- readRDS(res)
g <- plotES(res, TF="KLF9", outfolder=NA)
g

jianhong/ATACseqTFEA documentation built on Nov. 5, 2024, 9:46 a.m.