plotClusterImageG: plotClusterImageG.

Description Usage Arguments Value

Description

This function is just for convenience since calling plotValuesImageG with a factor produces the same results. This function is equivalent to rMSIproc::plotClusterImage() but using the ggplot2.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plotClusterImageG(
  peakMatrix,
  clusters,
  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
)

Arguments

peakMatrix

an rMSIproc peak matrix.

clusters

a vector with integer number according the cluster of each pixel.

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.

Value

a ggplot2 object.


prafols/rMSIproc documentation built on Dec. 12, 2021, 7:31 p.m.