Sankey条形图在R [英] Sankey bar graphs in R

查看:208
本文介绍了Sankey条形图在R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在R中创建这种类型的图。

I'd like to make this type of plot in R.

有关SAS宏的更多详细信息可在此处生成此示例: http://www.pharmasug.org/proceedings/2015/DV/PharmaSUG-2015-DV07.pdf

There's more detail on the SAS macros to produce this example here: http://www.pharmasug.org/proceedings/2015/DV/PharmaSUG-2015-DV07.pdf

有没有人有任何想法,我应该怎么做在R?

Does anyone have any thoughts on how I should go about doing this in R?

注意:我知道如何使用D3或谷歌库制作标准的sankey图。这个问题具体是关于SAS宏产生的条形图和sankey图的组合。

NOTE: I know how to make standard sankey diagrams with the D3 or google libraries. This question is specifically about the combination of bar graph and sankey diagram that the SAS macros produce.

推荐答案

您可以在此处创建该图:

You can create that graph here:

https://cran.r-project.org/web/packages/ggalluvial/vignettes/ggalluvial.html

这篇关于Sankey条形图在R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆