plotDMRs2Enrichr: Plot EnrichR Results

View source: R/plotDMRs2Enrichr.R

plotDMRs2EnrichrR Documentation

Plot EnrichR Results

Description

Visualize enrichment results and the contributes of hyper-metyhlated and hypo-methylated genes.

Usage

plotDMRs2Enrichr(
  enrichr.results,
  annotatedDMRs,
  stat = "P.value",
  n = 25,
  plot.type = "barplot",
  pal.col = "Dynamic",
  col.hyper = "#ff0000",
  col.hypo = "#00b3ff",
  thrs = c(0.01, 0.05),
  thrs.cols = c("green", "yellow")
)

Arguments

enrichr.results

data.frame resulting list from annotatedDMTs2Enrichr().

annotatedDMRs

anotated DMRs list resultingfrom annotateDMRs() or scoreAnnotatedDMRs()

stat

character, statistics to visualize. Accepted "P.value", "Adjusted.P.value" or "Overlap". Default = 'P.value'.

n

numeric, value indicating the number of enrichment to plot, starting from the most enriched, to visualize. Default = 25.

plot.type

character, compute or not different linear models for upregulated and downregulated genes. Accepted: "simple" or "splitted". Default = "splitted".

pal.col

character, the palette color for plot.type = 'lollipop'. Must be one from hcl.pals(). Default = 'Dynamic'.

col.hyper

character, the color representing hyper-methylated genes. Default = 'Grey70'.

col.hypo

character, the color representing hyper-methylated genes. Default = 'Grey30'.

thrs

numeric vectors, statistical thresholds to plot. Default = c(0.01, 0.05)

thrs.cols

characters vector, the colors to use for thresholds. Default = c('green', "yellow").

Value

plot of enrichR results


GianlucaMattei/methyl.O documentation built on Sept. 12, 2023, 11:53 p.m.