How to modify label text size/line width in cnetplot (ReactomePA/clusterProfiler)
1
0
Entering edit mode
@liampvmartin1992-23183
Last seen 3.0 years ago
Ireland

Hello,

I am using the cnetplot function in clusterProfiler to plot the top 5 over-represented pathways in my gene list. I would like to increase the font size of the node labels and increase the width of the lines linking genes to their pathway nodes. I can't find a way to do this. There does not seem to be a font.size argument like there are in other clusterProfiler functions. I appreciate clusterProfiler plots can be formatted like ggplot2 objects but I can't find the correct ggplot2 text size parameter to change to increase the node label size in the cnetplot. Attempted code below.

Thank you very much for your help.

cnetplot(reactome, categorySize="pvalue", foldChange = ranks, circular = TRUE, colorEdge = TRUE, showCategory = 5) + ggplot2::labs(title = "DM vs NG") + ggplot2::theme(legend.text=elementtext(size=16, face = "bold"), legend.title=elementtext(size=16, face = "bold"), plot.title = element_text(size=20, face = "bold"))

a$theme$text$size = 20

clusterProfiler ReactomePA • 4.0k views
ADD COMMENT
0
Entering edit mode
Guangchuang Yu ★ 1.2k
@guangchuang-yu-5419
Last seen 16 hours ago
China/Guangzhou/Southern Medical Univer…

pls create an issue in enrichtplot repo, https://github.com/YuLab-SMU/enrichplot. We will look into it.

ADD COMMENT

Login before adding your answer.

Traffic: 921 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