Question: Modifying the legend in cnetplot function
0
4.1 years ago by
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]
ego <- enrichGO(gene          = gene,
universe      = names(geneList),
organism      = "human",
ont           = "CC",
pvalueCutoff  = 0.01,
qvalueCutoff  = 0.05,
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 • 991 views