View source: R/enrichmentNetwork.R
enrichmentNetwork | R Documentation |
Creates an enrichment network plot. This function internally calls
findPathClusters
to obtain pathway clusters and then plotPathClusters
to create the enrichment network visualization.
enrichmentNetwork(
enrichment,
methods = aPEAR.methods,
theme = aPEAR.theme,
verbose = FALSE,
...
)
enrichment |
a data.frame containing enrichment results |
methods |
object of class |
theme |
object of class |
verbose |
enable / disable log messages |
... |
additional parameters (see |
a ggplot2
object
?findPathClusters
, ?plotPathClusters
# Load libraries
library(clusterProfiler)
library(DOSE)
library(org.Hs.eg.db)
data(geneList)
# Perform enrichment using clusterProfiler
enrich <- gseGO(geneList, OrgDb = org.Hs.eg.db, ont = 'CC')
# Create enrichment network visualization with default parameters
enrichmentNetwork(enrich@result)
# Create enrichment network visualization with repelled labels and elipses
enrichmentNetwork(enrich@result, repelLabels = TRUE, drawEllipses = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.