Re: [R] adding points in plot loop

2016-03-23 Thread PIKAL Petr
Hi Anothar approach is to reshape your ext data frame As you did not show your data I use my own. > dput(mikro) structure(list(cas = c(0L, 2L, 3L, 5L, 6L, 8L, 9L, 10L, 12L, 17L, 23L), zr = c(0.19, 0.115, 0.073, 0.068, 0.052, 0.055, 0.048, 0.047, 0.047, 0.045, 0.045), zrred = c(0.145, 0.07, 0.028

Re: [R] adding points in plot loop --> try using matplot() !

2016-03-23 Thread Martin Maechler
> Duncan Murdoch > on Wed, 23 Mar 2016 05:55:43 -0400 writes: > On 23/03/2016 5:36 AM, catalin roibu wrote: >> Dear R users, >> >> I have a dataframe with 6 columns and I want to create a plot (with for >> loop). My question is how to add points in the for loop? I

Re: [R] adding points in plot loop

2016-03-23 Thread Duncan Murdoch
On 23/03/2016 5:36 AM, catalin roibu wrote: Dear R users, I have a dataframe with 6 columns and I want to create a plot (with for loop). My question is how to add points in the for loop? I tried this code, but without success. vv<-rbind(colnames(ext)) for(i in 1:ncol(vv)){ with(ext, plot(row