View source: R/plotEnrichAdv.R
plotEnrichAdv | R Documentation |
Over-representation analysis (ORA) is a simple method for objectively deciding whether a set of variables of known or suspected biological relevance, such as a gene set or pathway, is more prevalent in a set of variables of interest than we expect by chance.
plotEnrichAdv(
up_enrich_df,
down_enrich_df,
plot_type = c("one", "two"),
term_metric = c("FoldEnrich", "GeneRatio", "Count", "RichFactor"),
stats_metric = c("p.adjust", "pvalue", "qvalue"),
wrap_length = NULL,
xlim_left = NULL,
xlim_right = NULL,
color,
...
)
up_enrich_df |
Enrichment analysis 'data.frame' for up-regulated genes. |
down_enrich_df |
Enrichment analysis 'data.frame' for down-regulated genes. |
plot_type |
Choose from "one" and "two". "One" represents both up and down pathways are plotted together; "two" represents up and down are plotted seperately. |
term_metric |
Pathway term metric from one of 'GeneRatio','Count','FoldEnrich' and 'RichFactor'. |
stats_metric |
Statistic metric from one of "pvalue", "p.adjust", "qvalue". |
wrap_length |
Numeric, wrap text if longer than this length. Default is NULL. |
xlim_left |
X-axis left limit |
xlim_right |
X-axis right limit |
color |
Plot colors. |
... |
other arguments from 'plot_theme' function |
Both up and down regulated pathways could be plotted in one figure as two-side barplot
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.