View source: R/plotDMRs2Enrichr.R
plotDMRs2Enrichr | R Documentation |
Visualize enrichment results and the contributes of hyper-metyhlated and hypo-methylated genes.
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")
)
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"). |
plot of enrichR results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.