[R] simple time series plot

phibo pbolliger at mac.com
Wed Apr 18 15:26:02 CEST 2012


Thanks for your reply!

As I write the script to export the data from the database myself, I'm free
to sort the data (almost) at will.

I can either export to CSV in the form of 

sensor1
timestamp1, reading1, timestamp2, reading2, timestamp2, reading2...
sensor2
timestamp1, reading1, timestamp2, reading2, timestamp2, reading2...

OR

sensor1
timestamp1, timestamp2, timestamp3, ...
reading1, reading2, reading3, ...
sensor2
timestamp1, timestamp2, timestamp3, ...
reading1, reading2, reading3, ...

What is easier to read into a matrix? Sorry for asking such a stupid
question. But I just couldn't figure out how to read in the CSV into a data
structure that I could plot afterwards.

THANKS for your help!

--
View this message in context: http://r.789695.n4.nabble.com/simple-time-series-plot-tp4565579p4567706.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list