我们可以使用geom_area和ifelse函数,将日期分割成两个部分,然后用ggplot2将它们堆叠在一起。 ggplot(df, aes(x = date)) + geom_area(aes(y = ifelse(date < as.
確定! 回上一頁