i am trying to create sankey diagram using below data set
my.data = data.frame(Married = c("Yes","Yes", "Yes", "No", "No"),
Pet = c("Yes", "Yes", "No", "Yes", "No"),
Happy = c("Yes", "Yes", "Yes", "Yes", "No"),
freq = 5:1)
I created the sankey plot using
library(flipPlots)
SankeyDiagram(my.data[, -4],
link.color = "Source",
weights = my.data$freq)
the problem is that i want to keep the color of ribbon same from start to end i.e the ribbon color from source remain the same till the last node i.e happy and dont change after passing from pet
thanks in advance