Sankey bar graphs in R

2019-04-15 06:45发布

问题:

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

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

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

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.

回答1:

Use the library(flipPlots), using the SankeyDiagram() function.