Modifying the legend in cnetplot function
0
0
Entering edit mode
@vinicius-henrique-da-silva-6713
Last seen 17 months ago
Brazil

I would like to change the legend name, size and position in cnetplot (from clusterProfiler, DOSE and ReactomePA packages). Let´s use the manual example:

library(clusterProfiler)
data(geneList, package="DOSE")
gene <- names(geneList)[abs(geneList) > 2]
head(gene)
ego <- enrichGO(gene          = gene,
                universe      = names(geneList),
                organism      = "human",
                ont           = "CC",
                pAdjustMethod = "BH",
                pvalueCutoff  = 0.01,
                qvalueCutoff  = 0.05,
                readable      = TRUE)
head(summary(ego))
cnetplot(ego, categorySize="pvalue", foldChange=geneList)

The 'foldChange' parameter is very useful to show a number of quantitative genomic features. How could be the best way to modify its legend like in a normal plot. For example:

legend("top", legend="test", pch=21)

 I would be grateful for some ideas!

clusterProfiler DOSE • 3.0k views

Login before adding your answer.

Traffic: 468 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6