Description Usage Arguments Value See Also Examples
View source: R/plot_enrichment.R
This function takes a topGOdata
object and a topGOresult
object
to display the enrichment statistics of top N
GO terms.
It wraps ggplot2
plotting, and returns a ggplot2
graphic object.
1 2 3 | enrichment_barplot(object, result, showTerms = 10, numChar = 40,
orderBy = "Scores", y = "Count",
xlab = NULL, ylab = NULL, title = NULL)
|
object |
(Required). A |
result |
(Required). A |
showTerms |
(Optional). A single integer or a character vector of GO ID.
Default is |
numChar |
(Optional). A single integer. Default is |
orderBy |
(Optional). A character string. Default is |
y |
(Optional). A character string. Default is |
xlab |
(Optional). A character string. Default is |
ylab |
(Optional). A character string. Default is |
title |
(Optional). A character string. Default is |
A ggplot
2 plot object
1 2 3 4 5 6 | data(GOdata)
data(results.tGO)
resultFisher <- runTest(GOdata, algorithm = "classic", statistic = "fisher")
enrichment_barplot(GOdata, resultFisher, showTerms = 10, numChar = 40,
orderBy = "Scores", y = "Count")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.