list of AbstractMassObject objects.plotImsSlice(x, range=c(0, Inf),
sub=paste0("m/z: ", range[1L], "-", range[2L], ""),
removeEmptyRows=TRUE, removeEmptyCols=TRUE,
colRamp=colorRamp(c("black", "blue", "green", "yellow", "red")),
interpolate=FALSE, ...)list, list of
MassSpectrum /MassPeaks objects.double, length 2, range/thickness of the slice.character, sub title for the plot, see
title.logical, Should empty rows be removed?logical, Should empty columns be removed?colorRamp function, see
colorRamp for details.rasterImage for details.plot.MassSpectrum /MassPeaks object in
x must contain a list named imaging with an element
pos that stores the x and y value of the spectrum, e.g.:
> metaData(spectra[[1]])$imaging$pos
x y
1 5AbstractMassObject ,
MassSpectrum ,
MassPeaks ,
plot,MassSpectrum,missing-methodWebsite:
Example:
Shiny example:
plotImsSlice(spectra, range = c(3361.8, 3362.8))Run the code above in your browser using DataLab