This is a test version of Biostars. For the public version, visit https://www.biostars.org.
ggrepel function: geom_text_repel()

Hello.

I drew the volcano plto using the ggplot2 and ggrepel packages. The following is a volcano plot I drew.

enter image description here

I want to remove the lines shown in the figure above. How can I do it?

Thank you for help!

ggplot2 ggrepel r

The plot looks confusing, check the documentation there is an attribute called force. If you reduce the value you should get better results. For removing the line you have to play around with this attribute:

min.segment.length Skip drawing segments shorter than this, as unit or number. Defaults to 0.5. (Default unit is lines, but other units can be specified by passing unit(x, "units")).

1 answer

There is a dedicated package for this, see - https://bioconductor.org/packages/release/bioc/html/EnhancedVolcano.html

Thank you for help! I solved the probelm with the package.

Log in to answer this question.