【发布时间】:2013-07-09 11:56:03
【问题描述】:
我有一张这样的桌子:
> 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
我需要的是类似于这个帖子的情节:Plot time(x axis) and time of day & duration(y axis) of episodes
但是:
- 我想在 x 轴上显示的时间范围仅为一周
- y 轴旁边每天应该有一个箱线图(一周中的每一天) - 显示不同的颜色(每个工作时间 $SHIFT)
- 结果应该有点像日历周视图(iCal、Google 日历等)
【问题讨论】:
-
之前的一些可能有帮助的问题/答案:stackoverflow.com/questions/17043864/… 和 stackoverflow.com/questions/15014595/…
-
没找到...谢谢!!!
标签: r data-visualization