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