Description Usage Arguments Value Examples
View source: R/DGOdoubleBarGraph.R
A function that draws a double bar graph of DO and GO analysis, ordered and colored by group and p.adjust value.
1 2 3 4 5 6 7 | DGObarplot(
DGOResult,
showCategory = 8,
DOcol = c("red", "darksalmon"),
GOcol = c("blue", "lightskyblue"),
pAdjustCutoff = 0.05
)
|
DGOResult |
DO and GO enrichment analysis result returned from enrichDGO(). |
showCategory |
number of ontology groups to show from DO and GO each. |
DOcol |
color to use for plotting DO. |
GOcol |
color to use for plotting GO. |
pAdjustCutoff |
p.adjust cutoff value for ontology group to plot. |
Returns a double bar graph of DO and GO analysis.
different color for DO and GO results
color gradient by p.adjust value
ordered by p.adjust value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# load data from DOSE
library(DOSE)
data(geneList)
gene <- names(geneList)[abs(geneList) > 2]
result <- enrichDGO(gene, universe=names(geneList))
# tamper the data little bit to see
# the full functionalities of DGOplot
result$DO@result$p.adjust <- result$DO@result$p.adjust / 10
DGObarplot(result)
DGObarplot(result,
DOcol = c("purple", "yellow"),
GOcol = c("red", "blue"),
showCategory = 6)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.