I have this data and I want to create a stacked Sankey Diagram using ggplot. I want to try and recreate it and look like the following picture. What's the best way to go about it?
Risk Factors for Stroke 1990 1995 2000 2005 2010
Obesity 0.001 0.013 0.043 0.077 0.115
Diabetes 0.359 0.316 0.26 0.187 0.092
Smoking 0.171 0.156 0.142 0.128 0.116
Hypercholesterolemia 0.161 0.104 0.045 0.001 0.001
Hypertension 0.654 0.633 0.602 0.561 0.509
I want to recreate this diagram with the data
I tried this so far but I don't think that will make my data the way I want it to.
D2 <- Datatable1 %>% make_long(`Risk Factors for Stroke in Blacks`, `1990`, `1995`, `2000`, `2005`, `2010`)
D2