The visualizations in
notameViz can be used to monitor the processing and explore
the data, inspect individual features as well as plot results. Please
see the notame
website and protocol article for more information (Klåvus et al. 2020). Similar functionality is
available in miaViz and scater packages.
To install notameViz, install BiocManager
first, if it is not installed. Afterwards use the install
function from BiocManager and load
notameViz.
Preprocessing visualizations are used to monitor preprocessing such as drift correction and explore the data. Preprocessing visualizations return ggplot2 objects. Preprocessing is performed separately for each mode.
The function save_QC_plots conveniently saves common
visualizations after each round of processing, ignoring flagged features
by default. You can see this in action in the project example vignette
in the notame package. It also allows you to merge all saved plots into
one file by setting merge = TRUE. NOTE that this requires
you to install external tools. For Windows, install pdftk.
For linux, make sure pdfunite is installed.
Results visualizations return ggplot2 objects. Common visalizations
include effect heatmaps and volcano plots. Manhattan plots and cloud
plots can be used to relate results to biochemical features such as m/z
and RT and are plotted separately for each mode. To save these functions
to a PDF file, use save_plot.
lm_results <- notameStats::perform_lm(notame::drop_qcs(toy_notame_set),
formula_char = "Feature ~ Group")## INFO [2026-01-21 03:43:03] Starting linear regression.
## INFO [2026-01-21 03:43:06] Linear regression performed.
with_results <- notame::join_rowData(toy_notame_set, lm_results)
p <- volcano_plot(with_results,
x = "GroupB.estimate", p = "GroupB.p.value", p_fdr = "GroupB.p.value_FDR")## Warning: None of the FDR-adjusted p-values are below the significance level,
## not plotting the horizontal line.
The following visualizations are applied to each feature and directly
saved to a PDF file, one page per feature. If save = FALSE,
a list of plots is returned:
beeswarm_list <- save_beeswarm_plots(toy_notame_set[1:10],
save = FALSE, x = "Group", color = "Group")## Just a remainder, creating a long list of plots takes a lot of memory!
Color scales and other scales can be set separately for each function
call, and the defaults are set as options in the package. The scales are
ggplot scales, returned by e.g. scale_color_x. It is also
possible to change the scales globally for the complete project. To do
this, use e.g.
options("notame.color_scale_dis") <- scale_color_brewer(palette = "Dark2").
Below is a list of all the scales used in the package and their default
values (con = continuous, dis = discrete, div = diverging):
notame.color_scale_con = ggplot2::scale_color_viridis_c()notame.color_scale_dis = ggplot2::scale_color_brewer(palette = "Set1")notame.fill_scale_con = ggplot2::scale_fill_viridis_c()notame.fill_scale_dis = ggplot2::scale_fill_brewer(palette = "Set1")notame.fill_scale_div = ggplot2::scale_fill_distiller(palette = "RdBu")notame.shape_scale = ggplot2::scale_shape_manual(values = c(16, 17, 15, 3, 7, 8, 11, 13))## R version 4.5.2 (2025-10-31)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.3 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: Etc/UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats4 stats graphics grDevices utils datasets methods
## [8] base
##
## other attached packages:
## [1] notameStats_1.0.0 notameViz_1.0.2
## [3] notame_1.0.1 SummarizedExperiment_1.40.0
## [5] Biobase_2.70.0 GenomicRanges_1.62.1
## [7] Seqinfo_1.0.0 IRanges_2.44.0
## [9] S4Vectors_0.48.0 BiocGenerics_0.56.0
## [11] generics_0.1.4 MatrixGenerics_1.22.0
## [13] matrixStats_1.5.0 ggplot2_4.0.1
## [15] BiocStyle_2.38.0
##
## loaded via a namespace (and not attached):
## [1] gtable_0.3.6 beeswarm_0.4.0 xfun_0.56
## [4] bslib_0.9.0 lattice_0.22-7 vctrs_0.7.0
## [7] tools_4.5.2 parallel_4.5.2 tibble_3.3.1
## [10] pkgconfig_2.0.3 Matrix_1.7-4 RColorBrewer_1.1-3
## [13] S7_0.2.1 lifecycle_1.0.5 stringr_1.6.0
## [16] compiler_4.5.2 farver_2.1.2 codetools_0.2-20
## [19] vipor_0.4.7 htmltools_0.5.9 sys_3.4.3
## [22] buildtools_1.0.0 sass_0.4.10 yaml_2.3.12
## [25] pillar_1.11.1 jquerylib_0.1.4 tidyr_1.3.2
## [28] BiocParallel_1.44.0 DelayedArray_0.36.0 cachem_1.1.0
## [31] abind_1.4-8 tidyselect_1.2.1 digest_0.6.39
## [34] stringi_1.8.7 dplyr_1.1.4 purrr_1.2.1
## [37] maketools_1.3.2 labeling_0.4.3 fastmap_1.2.0
## [40] grid_4.5.2 cli_3.6.5 SparseArray_1.10.8
## [43] magrittr_2.0.4 S4Arrays_1.10.1 withr_3.0.2
## [46] scales_1.4.0 ggbeeswarm_0.7.3 rmarkdown_2.30
## [49] lambda.r_1.2.4 XVector_0.50.0 futile.logger_1.4.9
## [52] evaluate_1.0.5 knitr_1.51 viridisLite_0.4.2
## [55] rlang_1.1.7 futile.options_1.0.1 glue_1.8.0
## [58] BiocManager_1.30.27 formatR_1.14 jsonlite_2.0.0
## [61] R6_2.6.1