enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

cnetplot: How to control the size of the legend gene number and log2FC

Open VictorGoitea opened this issue 3 years ago • 5 comments

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:

image

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)

VictorGoitea avatar Dec 08 '20 20:12 VictorGoitea

Hi, Did you figure out how to fix this issue? I have similar problem.

Thank you,

zahramesri avatar Mar 09 '22 01:03 zahramesri

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.

baharvand79 avatar Jul 06 '22 17:07 baharvand79

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.

VictorGoitea avatar Aug 08 '22 06:08 VictorGoitea

Hi, I have the same question, so this is still relevant to users :)

IwanParf avatar Sep 05 '23 11:09 IwanParf