Enhancedvolcano labels superimposed on points
1
0
Entering edit mode
acharest • 0
@a9ae4838
Last seen 2.9 years ago
United States

Hi I'm using a recent version of Enhancedvolcano and using data of 3 months ago where I got volcano plots with labels next to the points, today I get labels that are right on top of the points. Is there a way to nudge these left or right top or bottom? here's my code

plot1 <- EnhancedVolcano(mydata, 
                         lab = as.character(mydata$gene),
                         x = "log2_fold_change",
                         y = "adj_p",
                         title = "Edu+ vs EdU- Microglia",
                         xlim = c(-8,10),
                         ylim = c(0,8),
                         selectLab = c(),
                         pCutoff = 0.05,
                         FCcutoff = 0.5849,
                         labSize = 5.0,
                         pointSize = 3,
                         col=c('grey10', 'royalblue4', 'purple4', 'red3'),
                         colAlpha = 0.3,
                         cutoffLineType = 'dashed',
                         cutoffLineCol = 'black',
                         cutoffLineWidth = 0.4,
                         legendLabels=c('Not sig.','Log2 FC','p-value',
                                        'p-value & Log2FC'),
                         legendPosition = 'right',
                         legendLabSize = 10,
                         legendIconSize = 3.0,
                         gridlines.major = FALSE,
                         gridlines.minor = FALSE,
                         #drawConnectors = TRUE,
                         #widthConnectors = 0.75
)


plot1
EnhancedVolcano • 2.3k views
ADD COMMENT
1
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 14 days ago
Republic of Ireland

Hi,

That is due to a change in a package on which EnhancedVolcano is dependent, namely ggrepel. Such a change in a package that is not maintained by me is almost entirely out of my control.

What I would suggest is to simply activate drawConnectors and then avail of other functionality to control, e.g., the length and thickness of connectors, and the amount of overlaps that are permitted (via max.overlaps)

Kevin

ADD COMMENT
0
Entering edit mode

Ok thx Kevin, I’ll use connectors and make them white or something do I don’t see them. Alternatively I can just nudge them in illustrator. Thx for your time

ADD REPLY
0
Entering edit mode

Sure thing, okay, it is difficult to account for every situation. Best of luck

ADD REPLY

Login before adding your answer.

Traffic: 588 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