This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Adjusting position of overlapping labels

Hi Kevin

I have been able to plot the data as a volcano plot. However, I have some data points which share the exact same adjusted p-value and a similar FC. And so the labels are probably getting overlapped and one label is obscuring the one closest to it. Please let me know if I can change the coordinates of the annotations/labels or is there a way to spread them out so all the labels are visible.

Cheers Farheen

label alignment

Thanks for your help!

That worked for me.

2 answers

You should take a look at the EnhancedVolcano package created by Kevin Blighe . It has the functionality you're looking for, I think.

See this example image:

EnhancedVolcanoo

Here's Kevin's post on it: EnhancedVolcano: Publication-ready volcano plots with enhanced colouring and labeling

Maybe a little late... If you use R/ggplot than the package you probably want is ggrepel. The functions geom_text_repel() and geom_label_repel() are basically a drop-in replacement for ggplot's geom_text, geom_label

Log in to answer this question.