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. ______________________________________________ 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.