[R] Odp: Plot a matrix
alcesgabbo
alcesgabbo at hotmail.com
Tue Nov 30 11:52:38 CET 2010
I explain better....
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
its a matrix.
The first row contains a list (not exactly an array) of date (index it's
just a name, I can substitute that nale with "Dates" for example)
if I do:
str(m[,0])
int[1:3, 0 ]
- attr(*, "dimnames")=List of 2
..$ index: chr [1:3] "2010-10-1 7:32:00" "2010-10-3 4:33:21" "2010-10-5
7:32:00"
..$ key : NULL
If I do:
plot(m[,5],type="o")
I can see 3 point with lines:
sensor3.A
2
1
7
it is OK
but in the x axes there is
1.0 1.5 2.0 2.5 3.0
instead of
2010-10-1 7:32:00 2010-10-3 4:33:21 2010-10-5 7:32:00
How can I solve this problem??
--
View this message in context: http://r.789695.n4.nabble.com/Plot-a-matrix-tp3065094p3065163.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list