Thanks, Carsten. That worked perfectly. I was able to use this code to obtain the xcmsRaw objects for my 12 samples and then plot EICs for the m/z and RT ranges that I wanted and the MS plot, too, for whichever of my 12 samples I wanted. In this example, I used sample #2.
Samples.raw <- list()
for (i in 1:12) {
Samples.raw[[i]] <- xcmsRaw(Samples[i], profstep=0, profmethod="bin")
rm(i)
}
mzRange <- cbind(512.0, 512.4)
RTRange <- cbind(705, 740)
EIC.2 <- getEIC(Samples.raw[[2]], mzrange=mzRange, rtrange=RTRange)
plot(EIC.2, mzrange=mzRange, rtrange=RTRange)
plotRaw(Samples.raw[[2]], mzrange=mzRange, rtrange=RTRange, log=FALSE)
THANKS!
Laura