ggplot2绘制Streamgraph
# install.packages("ggstream") 安装包
library(ggstream)
library(ggplot2)
colors <- c("#6181BD4E","#F348004E","#64A10E4E","#9300264E","#464E044E")
#绘图
ggplot(blockbusters, aes(x = year, y = box_office, fill
ggplot2绘制Streamgraph
# install.packages("ggstream") 安装包
library(ggstream)
library(ggplot2)
colors <- c("#6181BD4E","#F348004E","#64A10E4E","#9300264E","#464E044E")
#绘图
ggplot(blockbusters, aes(x = year, y = box_office, fill