View source: R/7_quick_double_enrich.R
| double_enrich | R Documentation | 
draw enrichment bar plots for both up and down genes,for human only.
double_enrich(deg, n = 10, color = c("#2874C5", "#f87669"), species = "human")
| 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 | 
| species | choose human or mouse, or rat, default: human | 
a list with kegg and go bar plot according to up and down genes enrichment result.
Xiaojie Sun
quick_enrich
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.