Question: Modifying the legend in cnetplot function
gravatar for Vinicius Henrique da Silva
3.9 years ago by

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:

data(geneList, package="DOSE")
gene <- names(geneList)[abs(geneList) > 2]
ego <- enrichGO(gene          = gene,
                universe      = names(geneList),
                organism      = "human",
                ont           = "CC",
                pAdjustMethod = "BH",
                pvalueCutoff  = 0.01,
                qvalueCutoff  = 0.05,
                readable      = TRUE)
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 • 957 views
ADD COMMENTlink written 3.9 years ago by Vinicius Henrique da Silva40
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 476 users visited in the last hour