You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing some issues when customizing the cnetplot that is generated from the results from a compareCluster analysis. Specifically, the size of the nodes cannot be increased. See plots below, specifically p4.
For comparison I have also included the output from cnetplot obtained after analyzing a single dataset (p1 - p2); these are all properly generated!
I believe this issue also relates to a similar issue reported for emapplot reported here: #308
Thanks in advance for having a look at this!
> library(clusterProfiler)
> library(enrichplot)
> library(org.Hs.eg.db)
> library(ggtangle)
>
> ## example list of genes
> data(geneList, package="DOSE")
> genes <- names(geneList)[abs(geneList) > 2]
>
> res <- enrichKEGG(gene = genes,
+ organism = "hsa",
+ keyType = "kegg",
+ pvalueCutoff = 0.05,
+ pAdjustMethod = "BH",
+ minGSSize = 10,
+ maxGSSize = 500)
Reading KEGG annotation online: "https://rest.kegg.jp/link/hsa/pathway"...
Reading KEGG annotation online: "https://rest.kegg.jp/list/pathway/hsa"...
> ## to increase readability, convert entrezid into symbols
> ## also calculate pairwise similarities (is in essence only applicable
> ## to GO terms, but just to be sure
>
> res <- setReadable(res, OrgDb = org.Hs.eg.db, keyType="ENTREZID")
> res <- pairwise_termsim(res)
>
> ## default plot
> p1 <- cnetplot(res,
+ layout = igraph::layout_nicely, ## default layout
+ showCategory = 3,
+ size_category = 1) ## default value
> print(p1)
>
@GuangchuangYu
I am facing some issues when customizing the
cnetplot
that is generated from the results from acompareCluster
analysis. Specifically, the size of the nodes cannot be increased. See plots below, specificallyp4
.For comparison I have also included the output from
cnetplot
obtained after analyzing a single dataset (p1
-p2
); these are all properly generated!I believe this issue also relates to a similar issue reported for
emapplot
reported here: #308Thanks in advance for having a look at this!
The text was updated successfully, but these errors were encountered: