Re: [R] correction needed in codes

2012-12-23 Thread Rui Barradas
Hello, Can't you simply lapply(b, lines, lwd = 2) ? Hope this helps, Rui Barradas Em 23-12-2012 02:19, eliza botto escreveu: Dear useRs,while trying to plot the yearly curves of 1000 stations and overlapping each set of curves with mean curve and then saving it automatically in a pdf file,

Re: [R] correction needed in codes

2012-12-23 Thread Rui Barradas
), function(i) (matplot(res[[i]][,-1], type=l,col=grey))) lapply(b, lines, lwd = 2,col=black) } dev.off() thanks in advance eliza Date: Sun, 23 Dec 2012 14:14:08 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] correction needed in codes

Re: [R] correction needed in codes

2012-12-23 Thread Rui Barradas
Merry christmas. Rui Barradas Em 23-12-2012 16:41, eliza botto escreveu: Dear Rui,thankyou very much. it was spot on. :D eliza Date: Sun, 23 Dec 2012 16:36:46 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] correction needed in codes

Re: [R] correction needed in codes

2012-12-23 Thread eliza botto
,col=black) } dev.off() thanks in advance eliza Date: Sun, 23 Dec 2012 14:14:08 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] correction needed in codes Hello, Can't you simply lapply(b, lines, lwd = 2) ? Hope this helps, Rui

Re: [R] correction needed in codes

2012-12-23 Thread eliza botto
Dear Rui,thankyou very much. it was spot on. :D eliza Date: Sun, 23 Dec 2012 16:36:46 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] correction needed in codes Hello, How about fun - function(i){ matplot(res[[i

Re: [R] correction needed in codes

2012-12-23 Thread eliza botto
same to u. :D eliza Date: Sun, 23 Dec 2012 16:42:03 + From: ruipbarra...@sapo.pt To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] correction needed in codes Merry christmas. Rui Barradas Em 23-12-2012 16:41, eliza botto escreveu: Dear Rui,thankyou very

[R] correction needed in codes

2012-12-22 Thread eliza botto
Dear useRs,while trying to plot the yearly curves of 1000 stations and overlapping each set of curves with mean curve and then saving it automatically in a pdf file, i tried the following commands Path = C:\\R\\003.pdfpdf(file=Path) for (i in seq(1:1000) a-lapply(seq_along(tcp),