Possible Duplicate:
Plot dates on the x axis and time on the y axis with ggplot2
I have a table with times, date and a value. For eg.,
time date value
00:01 2012-04-01 100
00:02 2012-04-01 150
00:03 2012-04-01 130
...
00:01 2012-04-02 80
00:02 2012-04-02 160
00:03 2012-04-02 20
...
03:01 2012-04-06 120
03:02 2012-04-06 160
04:03 2012-04-06 70
...
I need to plot a graph of time (x-axis), value (y-axis). I am using ggplot2 and lubridate, but can't make R plot in intervals of say every 30 mins along the x-axis. There are about 3000 rows (several times in minutes from 00:00 to 23:59 for multiple dates).
Any suggestions on how this can be accomplished. I have tried using factor(time), but R doesn't treat it as a time value (so, instead it tries to label continuous values from 00:01 of 2012-04-01 to 23:59 of 2012-04-06.