Skip to content
Prev 293490 / 398503 Next

Simple plot loop

Ben,

I think that your original for-loop would work if you just
replaced the 'i' in the lines() call with 'Data2[,i]':

    for (i in 2:length(Data2)) {
       lines(MONTH, Data2[, i], type="o", pch=22, lty=2, col="blue")
    }

Peter Ehlers
On 2012-05-03 07:04, Ben Neal wrote: