Re: [R] Plot matrix as many lines

2008-06-06 Thread Henrique Dallazuanna
Try this: matplot(t(m), type='l', lty = 'solid', col='black') On 6/6/08, Alberto Monteiro <[EMAIL PROTECTED]> wrote: > > Suppose that I have a matrix like: > > m <- rbind(c(1,2,3,4), c(2,3,2,1)) > > Is there any way to efficiently plot the _lines_ as if > I was doing: > > plot(m[1,], type="l")

Re: [R] Plot matrix as many lines

2008-06-06 Thread Chuck Cleland
On 6/6/2008 3:01 PM, Alberto Monteiro wrote: Suppose that I have a matrix like: m <- rbind(c(1,2,3,4), c(2,3,2,1)) Is there any way to efficiently plot the _lines_ as if I was doing: plot(m[1,], type="l") points(m[2,], type="l", col="red") (of course, in the "real world" there much more than

[R] Plot matrix as many lines

2008-06-06 Thread Alberto Monteiro
Suppose that I have a matrix like: m <- rbind(c(1,2,3,4), c(2,3,2,1)) Is there any way to efficiently plot the _lines_ as if I was doing: plot(m[1,], type="l") points(m[2,], type="l", col="red") (of course, in the "real world" there much more than just 2 lines and 4 columns...) Alberto Monteir