Description Usage Arguments Value
View source: R/ggplot_additional_graphics.R
plots an image map displaying the mass shift at each raster position.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plotMassDriftImageG(
peakMatrix,
peakList,
target_mass,
error_range_ppm,
plot_rows = 2,
plot_cols = 2,
plot_byrow = T,
plot_rotations = rep(0, length(peakMatrix$names)),
plot_mirror_X = rep(F, length(peakMatrix$names)),
plot_mirror_Y = rep(F, length(peakMatrix$names)),
plot_margin = 40,
plot_labels = peakMatrix$names,
title_label = "",
fixed_aspect_ratio = F
)
|
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. |
plot_rows |
number of rows to arrange multiple images in the plotting area. |
plot_cols |
number of columns to arrange multiple images in the plotting area. |
plot_byrow |
a boolean idicating if the plotted images must be sorted by rows. |
plot_rotations |
a vector with the rotation in degree to apply to each image. |
plot_mirror_X |
a vector of booleans idicatinc if each image must be flipped horizontally. |
plot_mirror_Y |
a vector of booleans idicatinc if each image must be flipped vertically. |
plot_margin |
a numeric value that determines the separation between images. |
plot_labels |
text labels to be used for each image. |
title_label |
Text label for the plot main title. |
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.