enrichplot
enrichplot copied to clipboard
cnetplot: How to control the size of the legend gene number and log2FC
Hi, Does not matter what I do, the legend saying "gene number" and "log2FC" overlaps all the time with the actual plot I tried different parameters of the cnetplot function and also tried to modify the plot after storing the plot to a variable but I do not find the right parameter to change. Do you know any trick to control the position/size of this legend?
I attached below the image as example:
code: enrichplot::cnetplot(kk_DownUp categorySize="pvalue", showCategory =8, foldChange = lfc_sigRes_pro, vertex.label.font=6, layout = "kk", cex_category = 0.5, colorEdge= FALSE)
Hi, Did you figure out how to fix this issue? I have similar problem.
Thank you,
Hello, How did you cluster your data? I mean how could you separate up-regulated and down-regulated genes and show them in the same plot? Thank you.
Hi @baharvand79, you should use compareCluster first. It is well described in the vignette of ClusterProfiler, but if you encounter some problem you can create a new issue about that. The problem here is about the legend position in the cneplot() funtion.
Hi, I have the same question, so this is still relevant to users :)