Usage
## S3 method for class 'list':
plotMsiSlice(x, center, tolerance,
colRamp=colorRamp(c("black", "blue", "green", "yellow", "red")),
interpolate=FALSE, legend=TRUE, alignLabels=FALSE, combine=FALSE,
...)
## S3 method for class 'array':
plotMsiSlice(x,
colRamp=colorRamp(c("black", "blue", "green", "yellow", "red")),
interpolate=FALSE, legend=TRUE, alignLabels=FALSE, combine=FALSE,
plotInteractive=FALSE, ...)
## S3 method for class 'matrix':
plotMsiSlice(x,
colRamp=colorRamp(c("black", "blue", "green", "yellow", "red")),
interpolate=FALSE, scale=TRUE, legend=scale, ...)Arguments
x
The mass spectrometry imaging dataset. It could be a list of
MassSpectrum/MassPeaks objects or
an array (e.g. generated by
center
double, if x is a list of
MassSpectrum/MassPeaks objects
this argument represent the center mass value of the slices,
tolerance
double, if center is given tolerance
specifies the thickness of the slices (center + c(-tolerance,
tolerance)), see msiSlices for detacolRamp
colours as colorRamp function, see
colorRamp for details. If combine=TRUE
multiple colour functions must be applied as list with an len interpolate
logical, use linear interpolation when drawing the
image, see rasterImage for details.scale
logical, if TRUE all values are divided by the
maximal value of the slice to get values between 0 and 1.
legend
logical, if TRUE a reference color gradient is
plotted on the right hand side of the plot. The upper color represents the
highest value in the slice and the lower color the lowest value
respectively. The legend<
alignLabels
logical, if combine=TRUE and
alignLabels=TRUE the center positions below the legend are aligned
on the right margin otherwise the aligned to their corresponding gradient.
combine
logical, if TRUE multiple centers are plotted in
one image. Therefore it would be necessary to apply a list of colRamp
functions (one function for each center). The intensity values for each
center of eac
plotInteractive
logical, if the slice array contains multiple centers,
combine=FALSE and an interactive plotting device is used a warning is
thrown and only the first center would be plotted. Use
plotInteractive=TR
...
arguments to be passed to plot, e.g.
main.