我有這樣的一個表:R:日曆一樣的箱圖
> 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軸上顯示只有一週
- 每天應該有一個boxplot與y軸一起(每週一個) - 顯示不同的顏色(每個工作區我$ SHIFT)
- 結果應該看起來有點像一個日曆周視圖(iCal中,谷歌日曆等)
可能有用的一些以前的問題/答案:http://stackoverflow.com/questions/17043864/place-1-heatmap-on-another-with-transparency-in-r和http://stackoverflow.com/questions/15014595/how-to-use-black-and-white-fill-patterns-instead-of-color-coding-on-calendar-hea – Thomas
did not the found that ... Thx !!! –