On Nov 29, 2010, at 6:22 AM, alcesgabbo wrote:
Hi, I have this problem: I have this matrix:
Doubtful that is is a matrix. In R matrices are all of the same type of object. This looks more like a zoo object since it has a time index. How was it created and what does str() show?
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".
So, what do you want: a dotplot, a barchart , a time-series .... or what?
How can I do this with few commands??
Possibly depending on the correctness of my assumptions": xyplot.zoo
-- David Winsemius, MD West Hartford, CT ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.