Description Usage Arguments Value
View source: R/ggplot_additional_graphics.R
Plot the mass shift observed at a target mass.
1 2 3 4 5 6 7 8 9 10 11 12 13 | plotMassDriftG(
peakMatrix,
peakList,
target_mass,
error_range_ppm,
min_SNR = 10,
mass_offset = 0,
title_label = "",
normalization = NA,
visible_legend = T,
legend_title = "",
N = 1
)
|
peakMatrix |
an rMSIproc peak matrix. |
peakList |
an rMSIproc peak list (no binning here!). |
target_mass |
the target mass to represent. |
error_range_ppm |
an error range in ppm to be represented around the target mass. |
min_SNR |
the minimum signal to noise ratio to be represented. |
mass_offset |
a mass offset to shift the plot mass axis relative to the target mass. |
title_label |
a string to be used as plot title. Chemical forumlas will be parsed to produce better results. |
normalization |
a vector containing the normalization value for each pixel or NA if no normalization should be applied. |
visible_legend |
a boolean specfing if a legend detailing the included MS images must be displayed. |
legend_title |
the title for the legend. |
N |
numbe of dots to display for each pixel, only the N highest SNR will be displayed. |
a ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.