View source: R/plot_mass_spectrum.R
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.
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
)
|
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.