R/ms1_peaks_vs_time_plot.R

Defines functions ms1PeaksVsTimePlot

Documented in ms1PeaksVsTimePlot

#' Retention time vs precursorMZ
#'
#' @param input dataframe
#'
#' @return ggplot
#' @export
#'
ms1PeaksVsTimePlot <-  function(input){
  ggplot2::ggplot(input) +
    ggplot2::geom_point(ggplot2::aes_(x = ~retentionTime, # convert to minutes
                                      y = ~peaksCount)) +
    ggplot2::xlab("Retention Time (min)") +
    ggplot2::ylab("MS1 Peak Count")
}
chasemc/mzPlotter documentation built on Nov. 19, 2019, 12:39 a.m.