[R] Plot data inside matrix

alcesgabbo alcesgabbo at hotmail.com
Mon Nov 29 12:22:59 CET 2010


Hi, I have this problem:

I have this matrix:
                             result property         procProperty
2010-10-01 07:32:00 40           A                sensor1             
2010-10-01 17:32:00 15           A                sensor3             
2010-10-02 07:32:00 32           A                sensor2             
2010-10-03 04:33:21 20           B                sensor1             
2010-10-03 04:33:21 33           B                sensor2             
2010-10-03 14:33:21 12           A                sensor3             
2010-10-05 07:32:00 31           B                sensor1             
2010-10-05 07:32:00 15           B                sensor2             
2010-10-06 17:32:00 4            A                sensor3     

I would like to plot this matrix in this way:

create in this case 2 plots (one for each "property": A and B )
for each plot there will be 3 lines (one for each "procProperty":
sensor1,sensor2,sensor3) composed by the "result".

How can I do this with few commands??

Thanks Alberto

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



More information about the R-help mailing list