Preventing overlap of gene labels/names in cnetplot

Hello,

I’m working on creating a cnetplot based off of a compareCluster enrichment result. I want to plot 5 GO Biological Processes as the individual categories with the corresponding genes connecting with each one of them. I’m able to do this successfully with the cnetplot function, but since each category contains many genes, they tend to overlap with each other and with the category name, and thus making it hard to read, especially when I increase the size of the gene or category label. I know with ggplots, you’re able to repel text and labels from overlapping, but is there a way to do this with the cnetplot function or any visualization tool in the enrichplot package?

Thank you

Read more here: Source link