Description Usage Arguments Value
Creates a plot in a grid to compare the spectral alignment of an ion before and after the rMSIproc processing. For a given mass this function will display in a single figure: - The ion map. - The alignment before the processing (RAW). - The alignment after the processing (Aligned).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | plotMassDriftComparedG(
peakMatrix_RAW,
peakMatrix_ALNG,
peaklist_RAW,
peaklist_ALNG,
mass,
error_range_ppm = 400,
min_SNR = 10,
mass_offset_RAW = 0,
title_label = "",
normalization_RAW = NA,
normalization_ALNG = NA,
ion_map_plot_cols = 2,
ion_map_plot_rows = 2,
ion_map_plot_byrow = T,
ion_map_plot_rotations = rep(0, length(peakMatrix_ALNG$names)),
ion_map_plot_labels = peakMatrix_ALNG$names,
ion_map_plot_margin = 40,
ion_map_plot_mirror_X = rep(F, length(peakMatrix_ALNG$names)),
ion_map_plot_mirror_Y = rep(F, length(peakMatrix_ALNG$names)),
ion_map_fixed_aspect_ratio = F
)
|
peakMatrix_RAW |
an rMSIproc peak matrix obtained without the alginment routine (RAW). |
peakMatrix_ALNG |
an rMSIproc peak matrix obtained with the alginment routine (Aligned). |
peaklist_RAW |
a peak list generated with rMSIproc without the alginment routine (RAW). |
peaklist_ALNG |
a peak list generated with rMSIproc with the alginment routine (Aligned). |
mass |
the ion mass to be plot. |
error_range_ppm |
a mass range to be plot specified in ppm. |
min_SNR |
peaks with a signal to noise ratio below this parameter will be discarded. |
mass_offset_RAW |
a mass offset applied to the RAW data to manually compensate possible mass shifts. |
title_label |
the main title of the plot. |
normalization_RAW |
a vector containing the normalization value for each pixel in the RAW data or NA if no normalization should be applied. |
normalization_ALNG |
a vector containing the normalization value for each pixel in the aligned data or NA if no normalization should be applied. |
ion_map_plot_cols |
number of columns to arrange multiple images in the plotting area. |
ion_map_plot_rows |
number of rows to arrange multiple images in the plotting area. |
ion_map_plot_byrow |
a boolean idicating if the plotted images must be sorted by rows. |
ion_map_plot_rotations |
a vector with the rotation in degree to apply to each image. |
ion_map_plot_labels |
text labels to be used for each image. |
ion_map_plot_margin |
a numeric value that determines the separation between images. |
ion_map_plot_mirror_X |
a vector of booleans idicatinc if each image must be flipped horizontally. |
ion_map_plot_mirror_Y |
a vector of booleans idicatinc if each image must be flipped vertically. |
ion_map_fixed_aspect_ratio |
set this flag to true to fix the aspect ratio of the ion images. |
a ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.