从这样的 Dataframe :
data.frame(status = c("open", "close", "close", "open/close","close"),
stock = c("google", "amazon", "amazon", "yahoo", "amazon"),
newspaper = c("times", "newyork", "london", "times", "times"))
要获得冲积地块
,需要如何转换数据
其中两列是股票和报纸,链接是状态列的频率
1条答案
按热度按时间vfwfrxfs1#
根据所提供的数据,很难准确地知道需要绘制什么样的图。我建议使用受R库
ggalluvial
的冲积地块this blog启发的方法: