Questions tagged «sankey-diagram»

10
R中的Sankey图?
我正在尝试使用R中的Sankey Diagram可视化我的数据流。 我发现此博客文章链接到生成Sankey Diagram的R脚本,不幸的是,它是原始的并且有所限制(请参见下面的示例代码和数据)。 有谁知道其他脚本或什至是软件包吗?我的最终目标是通过图表组件的相对大小来可视化数据流和百分比,就像这些Sankey Diagrams示例一样。 我在r-help列表上发布了一个类似的问题,但是两周后没有任何回应,我在这里尝试了我的运气。 谢谢,埃里克 PS。我知道Parallel Sets Plot,但这不是我想要的。 # thanks to, https://tonybreyal.wordpress.com/2011/11/24/source_https-sourcing-an-r-script-from-github/ sourc.https <- function(url, ...) { # install and load the RCurl package if (match('RCurl', nomatch=0, installed.packages()[,1])==0) { install.packages(c("RCurl"), dependencies = TRUE) require(RCurl) } else require(RCurl) # parse and evaluate each .R script sapply(c(url, ...), function(u) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.