我有一个类似的流图,
library(dplyr)
library(babynames)
library(streamgraph)
babynames %>%
filter(grepl("^Kr", name)) %>%
group_by(year, name)
%>% tally(wt=n) -> baby_names
head(baby_names)
streamgraph(baby_names, "name", "nn", "year")
网址:http ://hrbrmstr.github.io/streamgraph/
如何使用来自其他来源(例如,来自数据框的附加列)的文本添加自定义工具提示