1
我学习上的其他类似的问题,但似乎无法得到这个工作对我的数据。堆栈区域图中的R
我瞄准了这一结果:
这是我的数据帧:
Room Direc MB Alley-10 Rx 1 Alley-11 Rx 7 Alley-12 Rx 11 Alley-10 Tx 23 Alley-11 Tx 17 Alley-12 Tx 20
当我运行:
ggplot(tp, aes(x=Room,y=MB)) + geom_area(aes(fill=factor(Direc)))
我得到这样的结果:
我怎样才能得到这个工作?