Re: [R] plot several lines programmaticaly

2015-12-15 Thread PIKAL Petr
t; Cc: r-help@r-project.org > Subject: Re: [R] plot several lines programmaticaly > > Hi, Petr, > > from your example it's not doubtlessly clear to me sure how the > sequence of ifs should really be continued, but couldn't a nested loop > help? > Something like: &g

Re: [R] plot several lines programmaticaly

2015-12-15 Thread Gerrit Eichner
Hi, Petr, from your example it's not doubtlessly clear to me sure how the sequence of ifs should really be continued, but couldn't a nested loop help? Something like: for (i in 1:npks) { plot(res[[i]]$x, res[[i]]$y, pch=20) for (j in 1:i) { lines(res[[i]]$x, res[[i]]$fitpk[j,], col=j, lw

[R] plot several lines programmaticaly

2015-12-15 Thread PIKAL Petr
Dear all I am stuck with output of some result. Sorry for not providing working example but res is quite a big list and I believe you are able to understand my problem. I have npks variable, which can be anything from 1 to let say 5. I get result called here res as a nested list with several co