DGObarplot: Draw a bar graph on the DO and GO analysis.

Description Usage Arguments Value Examples

View source: R/DGOdoubleBarGraph.R

Description

A function that draws a double bar graph of DO and GO analysis, ordered and colored by group and p.adjust value.

Usage

1
2
3
4
5
6
7
DGObarplot(
  DGOResult,
  showCategory = 8,
  DOcol = c("red", "darksalmon"),
  GOcol = c("blue", "lightskyblue"),
  pAdjustCutoff = 0.05
)

Arguments

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.

Value

Returns a double bar graph of DO and GO analysis.

Examples

 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)

JoelleJee/DGOplot documentation built on July 15, 2020, 8:32 a.m.