# NOT RUN {
## load package
library("MALDIquant")
## create a MassSpectrum object by default constructor
s <- createMassSpectrum(mass=1:100, intensity=rnorm(100)^2,
metaData=list(name="example"))
## show some details
s
## plot spectrum
plot(s)
# }
Run the code above in your browser using DataLab