0
我在堆积的条形图中出现问题,即在时间轴上表示。R,ggplot,堆积条形图,时间序列
我的DF如下所示:
date (class: Date) | action (class: character) | share (class: integer)
2016-01-17 | ABC | 0.26
2016-01-17 | DEF | 0.16
...
2016-01-18 | ABC | 0.22
2016-01-18 | GHI | 0.19
我现在想为每天的基础上堆积条形图。我曾尝试
ggplot(my_df, aes(date,fill=action))+ geom_bar()+ scale_x_date()
然而,这并没有产生预期的结果。有人有想法吗?
最良好的祝愿