[R] Plotting (vector,matrix)

Raymond Wan rwan at kuicr.kyoto-u.ac.jp
Sun Sep 16 06:27:02 CEST 2007


jim holtman wrote:
> matplot(x,y)
>
>   

Ah, thanks -- I got it working!  Actually, I was getting a "must have 
the same number of rows" error since x has the same number of columns as 
y, but x itself is a single row.  This worked for me when I transposed 
y...which is ok for my problem:

matplot(x,t(y))

Thanks!

Ray



More information about the R-help mailing list