kevinblighe / EnhancedVolcano

Publication-ready volcano plots with enhanced colouring and labeling
398 stars 81 forks source link

arrowheads option doesn't work #72

Closed lokapal closed 3 years ago

lokapal commented 3 years ago

Hello, Kevin!

There are some enhancements in the new EnhancedVolcano, but some things are changed and even broken definitely. How can I control the WIDTH of arrow heads? Previous version generated MUCH more pleasant-looking arrows. Moreover, I cannot turn off arrow heads at all: I've tried arrowheads=FALSE (as in the example at github): Error in EnhancedVolcano(res, lab = res$symbol, x = "log2FoldChange", : unused argument (arrowheads = FALSE) And I've tried "new style" arrowHeads=FALSE with the same result: Error in EnhancedVolcano(res, lab = res$symbol, x = "log2FoldChange", : unused argument (arrowHeads = FALSE)

R 3.6.3, Win7 x64 SP1: attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] EnhancedVolcano_1.4.0 ggrepel_0.9.1 ggplot2_3.3.3

loaded via a namespace (and not attached): [1] Rcpp_1.0.6 withr_2.4.1 assertthat_0.2.1 dplyr_1.0.4 crayon_1.4.1 grid_3.6.3 R6_2.5.0 DBI_1.1.1
[9] lifecycle_0.2.0 gtable_0.3.0 magrittr_2.0.1 scales_1.1.1 pillar_1.4.7 rlang_0.4.10 generics_0.1.0 vctrs_0.3.6
[17] ellipsis_0.3.1 glue_1.4.2 purrr_0.3.4 munsell_0.5.0 compiler_3.6.3 pkgconfig_2.0.3 colorspace_2.0-0 tidyselect_1.1.0 [25] tibble_3.0.6

kevinblighe commented 3 years ago

Hi, you need to upgrade your version of R to 4.0.x in order to avail of this new functionality. As you are using R 3.6.3, install.packages() and BiocManager::install()will automatically download an older version of EnhancedVolcano.

Note that some of the labeling via arrows / connectors is controlled via ggrepel, which is used by EnhancedVolcano.

Kevin