Question: Modifying the legend in cnetplot function
0
gravatar for Vinicius Henrique da Silva
3.8 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]
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 • 939 views
ADD COMMENTlink written 3.8 years ago by Vinicius Henrique da Silva40
Please log in to add an answer.

Help
Access

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