[R] Plot a matrix

alcesgabbo alcesgabbo at hotmail.com
Tue Nov 30 10:52:35 CET 2010


Hi,

I have this MATRIX m:

                key
index               sensor1.A sensor1.B sensor2.A sensor2.B sensor3.A
  2010-10-1 7:32:00         8        NA         5        NA         2
  2010-10-3 4:33:21        NA         3        NA         2         1
  2010-10-5 7:32:00        NA         4        NA         6         7

m[,0] represents "date"
m[,1] represent an "array" of values
also m[,2],m[,3],m[,4],m[,5] represent "arrays" of values

how can I plot this matrix? I would like to have: 

at x axes: "index" (the list of dates)
and 5 lines (one for each columns sensor1.A sensor1.B sensor2.A sensor2.B
sensor3.A)

Thanks
Alberto

-- 
View this message in context: http://r.789695.n4.nabble.com/Plot-a-matrix-tp3065094p3065094.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list