ssplot | R Documentation |
Similarity space plot of enrichment analysis results.
ssplot(x, ...)
## S4 method for signature 'enrichResult'
ssplot(x, showCategory = 30, ...)
## S4 method for signature 'gseaResult'
ssplot(x, showCategory = 30, ...)
## S4 method for signature 'compareClusterResult'
ssplot(x, showCategory = 30, ...)
ssplot.enrichResult(
x,
showCategory = 30,
drfun = NULL,
dr.params = list(),
group = TRUE,
node_label = "group",
...
)
ssplot.compareClusterResult(
x,
showCategory = 30,
pie = "equal",
drfun = NULL,
dr.params = list(),
group = TRUE,
node_label = "group",
...
)
x |
Enrichment result. |
... |
additional parameters additional parameters can refer the following parameters.
additional parameters can refer the emapplot function: emapplot. |
showCategory |
A number or a vector of terms. If it is a number, the first n terms will be displayed. If it is a vector of terms, the selected terms will be displayed. |
drfun |
The function used for dimension reduction, e.g. stats::cmdscale (the default), vegan::metaMDS, or ape::pcoa. |
dr.params |
list, the parameters of tidydr::dr. one of 'category', 'group', 'all' and 'none'. |
group |
logical, if TRUE, group the category. |
node_label |
Select which labels to be displayed, one of 'category', 'group', 'all' and 'none'. |
pie |
one of 'equal' or 'Count' to set the slice ratio of the pies |
ggplot object
Guangchuang Yu
## Not run:
library(clusterProfiler)
library(org.Hs.eg.db)
library(enrichplot)
library(GOSemSim)
library(DOSE)
data(geneList)
gene <- names(geneList)[abs(geneList) > 2]
ego <- enrichGO(gene = gene,
universe = names(geneList),
OrgDb = org.Hs.eg.db,
ont = "BP",
pAdjustMethod = "BH",
pvalueCutoff = 0.01,
qvalueCutoff = 0.05,
readable = TRUE)
d <- godata('org.Hs.eg.db', ont="BP")
ego2 <- pairwise_termsim(ego, method = "Wang", semData = d)
ssplot(ego2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.