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

Re: [R] Extending a plot in a loop

2010-11-10 Thread Sebastian Gibb
Am Mittwoch, 10. November 2010, 19:22:38 schrieb 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

Re: [R] Extending a plot in a loop

2010-11-10 Thread jim holtman
If you want to read in all the files and then set the range so you can print a parameter from each one on a single chart, there is some information in the archives about how to do this. A brief outline is below (definitely untested) allFiles - lapply(fileList, read.table, header=TRUE, ... other