[R] Extending a plot in a loop (With attachment)

2010-11-16 Thread Nasrin Pak
My problem is that I have a data set for every day of measurement in a seperate file and I want to plot one parameter of the data for all the days in one graph. I tried to use for loop but only the last data remains in the program memory, I don`t know how to plot each day`s data continusly after

Re: [R] Extending a plot in a loop (With attachment)

2010-11-16 Thread Peter Alspach
Tena koe Nasrin Try points() instead of plot() in your second and subsequent calls to plot(). points() and lines() adds to the current plot by default. Of course you may have difficulties with setting the x and y limits by that's another matter. HTH Peter Alspach -Original