1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| ggplot(plot_df, aes(x = date, y = proj_num)) + geom_bar(stat = "identity", aes(fill = bar_mark)) + geom_line(aes(x = date, y = detail_num, color = point_mark), size = 2) + geom_point(aes(x = date, y = detail_num, color = point_mark), size = 3) + ylab("工作量") + xlab("时间") + scale_fill_manual(values = "#04B4AE", labels=c("每周经手\n任务量")) + scale_color_manual(values = "#B4045F", labels=c("每周完成\n事项数")) + guides(fill=guide_legend(title=NULL))+ guides(color=guide_legend(title=NULL))+ theme(legend.text=element_text(size=14), axis.title.y=element_text(size=14), axis.title.x=element_text(size=14))+ scale_x_continuous(breaks = seq(as.Date("2021-05-01"), as.Date("2021-11-01"), len = 5) )+ theme(axis.title.x = element_text(size = 15, family = "myFont", color = "green", face = "bold", vjust = 0.5, hjust = 0.5, angle = 45))+ theme(axis.text.x = element_text(size = 15, family = "myFont", color = "green", face = "bold", vjust = 0.5, hjust = 0.5, angle = 45))
|