Cannot re-order axes in ggalluvial
I have read through all of the ggalluvial posts that I can find about ordering the axes in an alluvial diagram. Each of my axes is a factor variable and I have set the levels to be in the order I wish for them to appear in the plot. The first of my two axes is correctly ordered per the levels of its factor variable and the order changes as it should when I change the levels. However, the second axis does not reflect the levels of its underlying factor variable. For some reason the second axis appears to mirror the levels of the first axis for all overlapping drug classes and is not responsive to any changes I make to the levels.