I have a table like this:
> workingtime
DATE TIME_START TIME_END SHIFT
1 2013-06-04 00:00 08:00 noshift
2 2013-06-04 08:00 16:00 I0
3 2013-06-04 16:00 20:00 callduty
4 2013-06-04 20:00 22:30 overtime
5 2013-06-04 22:30 24:00 callduty
6 2013-06-05 00:00 07:00 callduty
7 2013-06-05 07:00 08:00 overtime
8 2013-06-05 08:00 16:00 I0
9 2013-06-05 16:00 20:00 callduty
10 2013-06-05 20:00 22:30 overtime
11 2013-06-05 22:30 24:00 callduty
What I need is a plot similar to this post: Plot time(x axis) and time of day & duration(y axis) of episodes
But:
- The time frame I want to show at the x-axis is one week only
- There should be one boxplot per day alongside the y-axis (one per day of week) - showing different colors (per workingtime$SHIFT)
- The result should look a little bit like a calendar week view (iCal, Google Calendar, etc.)