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]]

