I'm trying to make a Sankey diagram in R using the alluvial package (https://cran.r-project.org/web/packages/ggalluvial/vignettes/ggalluvial.html). So far, I can replicate many of the examples that I've found. However, I'm specifically trying to replicate something that I haven't seen code for using the alluvial package.
Basically the dataset represents people arriving at a station (could be anything), some going onto next station, and some going missing (thus being truncated). In the alluvial package I can't figure out how to do this. I've attached a snapshot of what it should look like (made in http://sankeymatic.com/).
Should be fairly basic I imagine. One additional thing from the image I have shown is that I would like for the missing individuals bar to be a different colour at each node.
Could someone show me the code and code structure I would need for this?