double_enrich {tinyarray}R Documentation

draw enrichment bar plots for both up and down genes

Description

draw enrichment bar plots for both up and down genes,for human only.

Usage

double_enrich(deg, n = 10, color = c("#2874C5", "#f87669"))

Arguments

deg

a data.frame contains at least two columns:"ENTREZID" and "change"

n

how many terms will you perform for up and down genes respectively

color

color for bar plot

Value

a list with kegg and go bar plot according to up and down genes enrichment result.

Author(s)

Xiaojie Sun

See Also

quick_enrich

Examples

## Not run: 
if(requireNamespace("org.Hs.eg.db",quietly = TRUE)&
   requireNamespace("labeling",quietly = TRUE)){
   double_enrich(deg)
}else{
  if(!requireNamespace("org.Hs.eg.db",quietly = TRUE)) {
    warning("Package 'org.Hs.eg.db' needed for this function to work.
        Please install it by BiocManager::install('org.Hs.eg.db')",call. = FALSE)
  }
  if(!requireNamespace("labeling",quietly = TRUE)) {
    warning("Package 'labeling' needed for this function to work.
        Please install it by install.packages('labeling')",call. = FALSE)
  }
}

## End(Not run)

[Package tinyarray version 2.4.2 Index]