davidsjoberg / ggsankey

Make sankey, alluvial and sankey bump plots in ggplot
Other
262 stars 30 forks source link

Can ggsankey produce a different type of Sankey diagram (money flows) #49

Open TomHsiung opened 1 week ago

TomHsiung commented 1 week ago

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.

image