ggrepel function: geom_text_repel()
1
0
Entering edit mode
16 days ago
sooni ▴ 20

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 • 287 views
ADD COMMENT
0
Entering edit mode

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")).

ADD REPLY
2
Entering edit mode
16 days ago
zx8754 11k

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

ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1081 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6