
如图,饼图分面有问题,怀疑是coord_polar(theta = "y")导致的都是按照最多一天画的饼图。请问如何让各个饼图按照各自的合集画图(即都是完整的圆),源代码如下:ggplot(order_sum[1:45,], aes(x = "", y = order_num, group=lev,fill = lev)) + geom_bar(stat = "identity", width = 1) + coord_polar(theta = "y") +
labs(x = "", y = "", title = "6日内各提前预定分类占比" ) + theme(legend.title = element_blank()) +
theme(panel.background = element_rect(fill = "transparent",colour = NA),plot.background = element_rect(fill = "transparent",colour = NA))+
guides(fill=FALSE)+facet_wrap(~date,ncol=3)