[R] Plot matrix

mentor_ mentor_ at gmx.net
Tue Nov 11 13:31:35 CET 2008


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
-- 
View this message in context: http://www.nabble.com/Plot-matrix-tp20438584p20438584.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list