Tony Stocker
2011-Dec-12 19:32 UTC
[R] Help with charting time in seconds as HH:MM:SS on charts
Hello, I am dealing with data stored in a database as a 'time' object. I export the data from the database to a text file and utilize the 'time_to_sec()' function of the database to convert the human readable time (HH:MM:SS) to seconds so that I can use R to do analysis and create charts of the data. I do not need or use days or dates in the data, and the data range is from 07:00:00 to 18:00:00 or 25200-64800 seconds. However when I visualize the data in charts I do not want a scale that runs from 25200-64800 seconds, but rather in the HH:MM:SS format. Is there a relatively straight-forward and easy to use way to do this? Thanks, Tony
Uwe Ligges
2011-Dec-12 20:35 UTC
[R] Help with charting time in seconds as HH:MM:SS on charts
Please post only once! Uwe Ligges On 12.12.2011 20:32, Tony Stocker wrote:> Hello, > > I am dealing with data stored in a database as a 'time' object. I > export the data from the database to a text file and utilize the > 'time_to_sec()' function of the database to convert the human readable > time (HH:MM:SS) to seconds so that I can use R to do analysis and > create charts of the data. I do not need or use days or dates in the > data, and the data range is from 07:00:00 to 18:00:00 or 25200-64800 > seconds. However when I visualize the data in charts I do not want a > scale that runs from 25200-64800 seconds, but rather in the HH:MM:SS > format. Is there a relatively straight-forward and easy to use way to > do this? > > Thanks, > Tony > > ______________________________________________ > R-help at 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.
Reasonably Related Threads
- Creating appropriate time axis for data
- Converting time from HH:MM:SS to only HH:MM
- Calculations across multiple tables
- Adding duration (hh:mm:ss)\Converting factor column into duration class
- how to create analog stripchart plots of x vs t (t=mm/dd/yyyy hh:mm:ss)