View source: R/methodsEmapInternal.R
createMultiEmap | R Documentation |
The function creates a basic enrichment map using functional enrichment results.
createMultiEmap(
gostResultsList,
queryList,
showCategory,
groupCategory,
categoryLabel,
categoryNode,
line,
...
)
gostResultsList |
a |
queryList |
a |
showCategory |
a positive |
groupCategory |
a |
categoryLabel |
a positive |
categoryNode |
a positive |
line |
a non-negative |
... |
additional arguments that will be pass to the
|
a ggplot
object representing the enrichment map with
different colors for each group of enrichment results.
Astrid DeschĂȘnes
## Load the result of an enrichment analysis done with gprofiler2
data(parentalNapaVsDMSOEnrichment)
## Only retain the results section
gostResults <- as.data.frame(parentalNapaVsDMSOEnrichment$result)
## Limit the results subsection of REACTOME and KEGG
gostResultsREAC <- gostResults[which(gostResults$source == "REAC"),]
gostResultsREAC <- gostResultsREAC[1:13, ]
gostResultsKEGG <- gostResults[which(gostResults$source == "KEGG"),]
## Extract meta data information
queryList <- list("parental - REACTOME", "parental - KEGG")
## Create basic enrichment map using Wikipathways terms
enrichViewNet:::createMultiEmap(gostResultsList=list(gostResultsREAC,
gostResultsKEGG), queryList=queryList, showCategory=30L,
groupCategory=FALSE, categoryLabel=1, categoryNode=1, line=1.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.