RECETOX / MFAssignR

The MFAssignR package was designed for multi-element molecular formula (MF) assignment of ultrahigh resolution mass spectrometry measurements. A number of tools for internal mass recalibration, MF assignment, signal-to-noise evaluation, and unambiguous formula selections are provided.
GNU General Public License v3.0
0 stars 3 forks source link

SNplot: rename y-axis in the plot #65

Closed KristinaGomoryova closed 1 week ago

KristinaGomoryova commented 1 month ago

Currently, the y axis in the SNplot is labelled simply as "y", we should rename it to intensity probably

KristinaGomoryova commented 1 month ago

Based on the code below I think it is rather Abundance than Intensity

SNplot <- ggplot2::ggplot(df, ggplot2::aes_string(x = "mass", xend = "mass", y = 0, yend = "Abundance")) +
    ggplot2::geom_segment(ggplot2::aes(color = Index), size = 0.65, alpha = 1) +
    ggplot2::geom_hline(yintercept = cut, linetype = "solid", size = 0.1) +
    ggplot2::coord_cartesian(xlim = c(mass-window.x, mass+window.x), ylim = c(0, cut*window.y))