https://www.r-graph-gallery.com/323-sankey-diagram-with-the-networkd3-library/ networkD3 sankey https://rdrr.io/cran/Gmisc/man/transitionPlot.html transitionPlot: A transition plot in Gmisc: Descriptive Statistics, Transition Plots, and More This plot's purpose is to illustrate how states change before and after. In my research I use it before surgery and after surgery but it can be used in any ..