# 绘制堆叠面积图 library(dplyr) ## Warning: package 'dplyr' was built under R version 3.6.3 ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union
# 构建示例数据 time # x Axis value # y Axis group times=7) # group, one shape per group data head(data) ## time value group ## 1 1 89.38125 A ## 2 1 98.02650 B ## 3 1 89.63381 C ## 4 1 96.27630 D ## 5 1 44.17764 E ## 6 1 97.44857 F