Hi Yoann,
Description
just a little feedback on the ggvolcano.free() function. Currently I am trying to display 34 genes within the volcano plot using the force.label=c() argument. As those labels seem to be to close together and ggrepel does not tolerate the overlap, non of the labels are returned.
Warning messages:
1: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
2: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
3: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
4: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
5: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
6: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
7: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
8: ggrepel: 17 unlabeled data points (too many overlaps). Consider increasing max.overlaps
9: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
.....
To reproduce
volcano.plot<-ggvolcano.free(data=input.data, x.cutoff = 0.01, p.cutoff=0.05, force.label =c('REXO5', 'C18orf54','CCT6P1','CEP72','POLE2','MCM4','HELLS','CCT6P1','ANKRD20A11P','EHMT2','LIN9','PAXIP1' ))
You can find the complete script with input data under the following DFKZ path: /.../.../.../data/rathgeber/scripts/neuroblastoma/Methylation_Analysis/Make_gene_methylation_TelNet_genes_BiocompR_volcano_plot.R
Suggestion how to fix
You could tune the ggrepel argument "force" to increase the labels' distance
Session information
sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS: /usr/lib64/libblas.so.3.4.2
LAPACK: /usr/lib64/liblapack.so.3.4.2
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.0.7 BiocompR_0.0.149 ggplot2_3.3.5 data.table_1.14.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 rstudioapi_0.13 magrittr_2.0.1 tidyselect_1.1.1 munsell_0.5.0
[6] colorspace_2.0-2 R6_2.5.0 rlang_0.4.11 fansi_0.5.0 tools_4.0.0
[11] grid_4.0.0 gtable_0.3.0 utf8_1.2.2 cli_3.0.1 DBI_1.1.1
[16] withr_2.4.2 ellipsis_0.3.2 digest_0.6.27 assertthat_0.2.1 tibble_3.1.3
[21] lifecycle_1.0.0 crayon_1.4.1 farver_2.1.0 purrr_0.3.4 vctrs_0.3.8
[26] ggrepel_0.9.1 glue_1.4.2 labeling_0.4.2 compiler_4.0.0 pillar_1.6.2
[31] generics_0.1.0 scales_1.1.1 pkgconfig_2.0.3
There were 12 warnings (use warnings() to see them)
warnings()
Warning messages:
1: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
2: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
3: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
4: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
5: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
6: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
7: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
8: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
9: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
10: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
11: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps
12: ggrepel: 11 unlabeled data points (too many overlaps). Consider increasing max.overlaps