Re: [R] automatically adjusting axis limits

2009-10-27 Thread Greg Snow
If you really want to update the range of the plot axes after plotting, there is the zoomplot function in the TeachingDemos package. You will need to update the y-range each time through the loop and pass that to zoomplot. But, matplot is the better overall solution as has been pointed out alr

Re: [R] automatically adjusting axis limits

2009-10-27 Thread John Kane
PLEASE provide commented, minimal, self-contained, reproducible code. particularly a sample data.set. At the moment it sounds like you have one variable (Wavelength) with a length of 56 and Reflectance with a length of 5,000. What format(s) are the data in? Data.frames? Clearly this is not

Re: [R] automatically adjusting axis limits

2009-10-27 Thread Ben Bolker
Sac-6 wrote: > > Dear R users, > > I am a newbie. Just switched from MATLAB. So thanks a lot for your > patience. > > I have 5 spectra collected in field. Each spectra has two columns : > Wavelength (56) and the actual measurement. > > Each measurement came in a different .txt file on

Re: [R] automatically adjusting axis limits

2009-10-27 Thread Ben Bolker
Sac-6 wrote: > > Dear R users, > > I am a newbie. Just switched from MATLAB. So thanks a lot for your > patience. > > I have 5 spectra collected in field. Each spectra has two columns : > Wavelength (56) and the actual measurement. > > Each measurement came in a different .txt file on