Skip to content
Prev 161630 / 398500 Next

Plot matrix

Hi,

I would like to plot the rows of a matrix.
Is there a better way as doing it in the following way?:

plot(matrix[1,], type="l")
for (i in 2:dim(matrix)[1]) {
        lines(matrix[i,], type="l")
}

Cheers