Dear all,

I have a dataset of spectral measurements of sunlight. One row for each different observation, one column for each spectral channel.

I would like to select the spectral curves drawn with matplot() (I only know matplot() as a way of easily drawing them) with the help of the mouse and extract their row indexes :

a=url("http://ekumen.homelinux.net/spectra.RData";)
load(a)
matplot(lbd2, t(mySpectra), type="l",xlab="Wavelength [nm]",ylab="Radiance")

I was hoping that identify() would work on such a graphic but unfortunately it does not. I tried to the "identify" function of the package playwith(), but still the same problem.

I think I will have to write a function that does the job. But before that, I would like to have your opinions. What would be the easiest way of accomplishing this task?

Thank you very much
Best regards
servet

______________________________________________
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.

Reply via email to