Now I can use ggsankey to plot the flow of observations. Each row contribute to an absolute frequency of 1. However, what I want to do is to plot a Sankey diagram, which shows the flow of money. Each row might have different amount of money. I don't know how to do this by ggsankey.
Use a picture to illustrate my question. The node and flow is not the frequency of observations. Instead, it is the sum of revenues.
Now I can use ggsankey to plot the flow of observations. Each row contribute to an absolute frequency of 1. However, what I want to do is to plot a Sankey diagram, which shows the flow of money. Each row might have different amount of money. I don't know how to do this by ggsankey.
Use a picture to illustrate my question. The node and flow is not the frequency of observations. Instead, it is the sum of revenues.
Thanks a bunch.