enrichBarplot {coRdon} | R Documentation |
Make a barplot of enriched annotations. Bars' heights represent values of
the chosen enrichment statistic (c("enrich","M","A")
), and the
colours represent the p values (c("pvals", "padj")
).
enrichBarplot(x, variable, pvalue = "pvals", siglev = numeric()) ## S4 method for signature 'list' enrichBarplot(x, variable, pvalue = "pvals", siglev = numeric()) ## S4 method for signature 'AnnotatedDataFrame' enrichBarplot(x, variable, pvalue = "pvals", siglev = numeric())
x |
|
variable |
Character, indicating the statistic values to be used for
plotting, must be one of |
pvalue |
Character, one of |
siglev |
Numeric, significance level to be used for plotting. |
A ggplot
object.
require(ggplot2) HD59_PATHWAYS enrichBarplot(HD59_PATHWAYS, variable = "M", pvalue = "padj", siglev = 0.01) + labs(y = "pathway count\nlog ratios", x = "KEGG Pathway") x <- list(disease = LD94_PATHWAYS, healthy = HD59_PATHWAYS) enrichBarplot(x, variable = "enrich", pvalue = "padj", siglev = 0.01) + labs(y = "relative enrichment", x = "KEGG Pathway")