Closed EidrianGM closed 3 years ago
I was trying to save the plot via ggsave and got the following error
volcano <- EnhancedVolcano(resultsDF,x = 'log2FoldChange',y = 'padj',lab = resultsDF$gene_name) ggsave(outFile, plot = volcano20, device = 'svg', scale = 1, dpi = 300,width = 15,height = 15,units = 'cm')
Error: geom_text requires the following missing aesthetics: label Run rlang::last_error() to see where the error occurred.
rlang::last_error()
R-Session
R version 4.0.2 (2020-06-22) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.1 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=es_ES.UTF-8 [6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=es_ES.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] grid splines parallel stats4 stats graphics grDevices utils datasets methods base other attached packages: [1] gdtools_0.2.2 circlize_0.4.10 scatterplot3d_0.3-41 RColorBrewer_1.1-2 ggfortify_0.4.10 [6] ComplexHeatmap_2.4.3 edgeR_3.30.3 limma_3.44.3 NOISeq_2.31.0 Matrix_1.2-18 [11] DESeq2_1.28.1 SummarizedExperiment_1.18.2 DelayedArray_0.14.1 matrixStats_0.57.0 Biobase_2.48.0 [16] GenomicRanges_1.40.0 GenomeInfoDb_1.24.2 IRanges_2.22.2 S4Vectors_0.26.1 BiocGenerics_0.34.0 [21] EnhancedVolcano_1.6.0 ggrepel_0.8.2 ggplot2_3.3.2 loaded via a namespace (and not attached): [1] tidyr_1.1.2 bit64_4.0.5 BiocManager_1.30.10 blob_1.2.1 GenomeInfoDbData_1.2.3 Rsamtools_2.4.0 [7] pillar_1.4.6 RSQLite_2.2.1 lattice_0.20-41 glue_1.4.2 digest_0.6.25 XVector_0.28.0 [13] colorspace_1.4-1 XML_3.99-0.5 pkgconfig_2.0.3 GetoptLong_1.0.3 genefilter_1.70.0 zlibbioc_1.34.0 [19] purrr_0.3.4 xtable_1.8-4 scales_1.1.1 svglite_1.2.3.2 BiocParallel_1.22.0 tibble_3.0.3 [25] annotate_1.66.0 farver_2.0.3 generics_0.0.2 ellipsis_0.3.1 withr_2.3.0 survival_3.2-7 [31] magrittr_1.5 crayon_1.3.4 memoise_1.1.0 tools_4.0.2 GlobalOptions_0.1.2 lifecycle_0.2.0 [37] stringr_1.4.0 munsell_0.5.0 locfit_1.5-9.4 cluster_2.1.0 AnnotationDbi_1.50.3 Biostrings_2.56.0 [43] compiler_4.0.2 systemfonts_0.3.2 rlang_0.4.7 RCurl_1.98-1.2 rstudioapi_0.11 rjson_0.2.20 [49] labeling_0.3 bitops_1.0-6 gtable_0.3.0 DBI_1.1.0 R6_2.4.1 GenomicAlignments_1.24.0 [55] gridExtra_2.3 dplyr_1.0.2 rtracklayer_1.48.0 bit_4.0.4 clue_0.3-57 shape_1.4.5 [61] stringi_1.5.3 Rcpp_1.0.5 vctrs_0.3.4 geneplotter_1.66.0 png_0.1-7 tidyselect_1.1.0
R version 4.0.2 (2020-06-22) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.1 LTS
Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=es_ES.UTF-8 [6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=es_ES.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] grid splines parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages: [1] gdtools_0.2.2 circlize_0.4.10 scatterplot3d_0.3-41 RColorBrewer_1.1-2 ggfortify_0.4.10 [6] ComplexHeatmap_2.4.3 edgeR_3.30.3 limma_3.44.3 NOISeq_2.31.0 Matrix_1.2-18 [11] DESeq2_1.28.1 SummarizedExperiment_1.18.2 DelayedArray_0.14.1 matrixStats_0.57.0 Biobase_2.48.0 [16] GenomicRanges_1.40.0 GenomeInfoDb_1.24.2 IRanges_2.22.2 S4Vectors_0.26.1 BiocGenerics_0.34.0 [21] EnhancedVolcano_1.6.0 ggrepel_0.8.2 ggplot2_3.3.2
loaded via a namespace (and not attached): [1] tidyr_1.1.2 bit64_4.0.5 BiocManager_1.30.10 blob_1.2.1 GenomeInfoDbData_1.2.3 Rsamtools_2.4.0 [7] pillar_1.4.6 RSQLite_2.2.1 lattice_0.20-41 glue_1.4.2 digest_0.6.25 XVector_0.28.0 [13] colorspace_1.4-1 XML_3.99-0.5 pkgconfig_2.0.3 GetoptLong_1.0.3 genefilter_1.70.0 zlibbioc_1.34.0 [19] purrr_0.3.4 xtable_1.8-4 scales_1.1.1 svglite_1.2.3.2 BiocParallel_1.22.0 tibble_3.0.3 [25] annotate_1.66.0 farver_2.0.3 generics_0.0.2 ellipsis_0.3.1 withr_2.3.0 survival_3.2-7 [31] magrittr_1.5 crayon_1.3.4 memoise_1.1.0 tools_4.0.2 GlobalOptions_0.1.2 lifecycle_0.2.0 [37] stringr_1.4.0 munsell_0.5.0 locfit_1.5-9.4 cluster_2.1.0 AnnotationDbi_1.50.3 Biostrings_2.56.0 [43] compiler_4.0.2 systemfonts_0.3.2 rlang_0.4.7 RCurl_1.98-1.2 rstudioapi_0.11 rjson_0.2.20 [49] labeling_0.3 bitops_1.0-6 gtable_0.3.0 DBI_1.1.0 R6_2.4.1 GenomicAlignments_1.24.0 [55] gridExtra_2.3 dplyr_1.0.2 rtracklayer_1.48.0 bit_4.0.4 clue_0.3-57 shape_1.4.5 [61] stringi_1.5.3 Rcpp_1.0.5 vctrs_0.3.4 geneplotter_1.66.0 png_0.1-7 tidyselect_1.1.0
Okey sorry my fault, a problem with variables in the environment, better to remove this issue hehe
I was trying to save the plot via ggsave and got the following error
R-Session