## load library
library("MALDIquant");
## create a SinglePeakList object from scratch
spl <- new("SinglePeakList", mass=1:5, intensity=sample(x=100:10000, size=5),
metaData=list(name="unrealistic example"));
## plot peaks
plot(spl);
## label peaks
labelPeaks(spl);Run the code above in your browser using DataLab