plot_mass_spectrum: plot_mass_spectrum

Description Usage Arguments

View source: R/plot_mass_spectrum.R

Description

This function plots the sample mass spectrum.The minimum and maximum mz values can be specified to plot a specific region of the mass spectrum.

Usage

1
2
3
4
5
6
7
8
plot_mass_spectrum(
  data,
  plot_title = "",
  line_color = "black",
  line_size = 0.1,
  min_x = NULL,
  max_x = NULL
)

Arguments

data

a tibble containing the following column names: "mz" and "rel_abund"

plot_title

a character string containing the sample name

line_color

a character string containing the line color

line_size

a numeric value containing the line size

min_x

a numeric containing the minimum mz value to plot (default = NULL)

max_x

a numeric containing the maximum mz value to plot (default = NULL)


robertyoung3/MSanalyzeNOM documentation built on June 7, 2021, 7:46 a.m.