Try extract the individual frames first ... Thanks, Guanrao
http://www.foundyo.com ________________________________ From: Mª Teresa Martinez Soriano <teresama...@hotmail.com> To: "r-help@r-project.org" <r-help@r-project.org> Sent: Tuesday, August 6, 2013 3:43 AM Subject: [R] R plot Hi to everyone, first of all, thanks hor this excellent service. I have a doubt in R, it looks like: I want to get a plot of my data.frame, but I have used the funtion split in this data.frame and I don't know if there exist some function which could help me, I was using for loop. The problem is that I get a plot with all the datas together and I want a plot for each data.frame i get after using split function. x<-split(cast1,cast1$SECTOR) y<-split(cast2,cast2$SECTOR) for (i in 1:length(a)) { datos[[i]]<-y[[i]] } plot(datos[[2]][,6], type="l", main= "SECTOR" ) for(j in 1: length(datos))for(i in 6:13)(lines(datos[[j]][,i], type="l", col=i)) What can I do in order to get this plot separately? I have tried with this: apply(datos,function(x)lines(x[[]][,i], type='l',col=i)) but I get nothing, I have no idea about using apply, mapply..functions with plot Thanks in advance [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.