thanks again walmes. but the new problem would be that not all of the peaks are the same intensity. therefore the top five datapoints from my highest peak have greater intensity values than the highest point in the second-highest peak.
but this is once again helpful. i found that there is a library msProcess (not in the base CRAN packages) made specially for mass spec data analysis. included in it is a peak-finder that looks for local maxima. the data has to be imported in a particular way and theres not too much documentation but thats what I am going to try. thanks again for your prompt reply, best, zach cp -- View this message in context: http://n4.nabble.com/Line-Graph-Labels-tp1748218p1748586.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.