Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Alter Sankey alignment in R

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.