Alter Sankey alignment in R


#1

Hey all, I’m really enjoying playing around with Sankey diagrams with Plotly in R. However, I can’t seem to find a way to change the direction of flow in the diagrams. You can see what I’m talking about by looking at the different alignments here. In particular, I’d like to get it to go right to left. I’ve tried playing around with setting autorange = "reversed" and x = c(-1, 0) but this doesn’t seem to affect things. Would appreciate any help on this.