scatterpie
scatterpie copied to clipboard
How to enforce column order for cols?
Scatterpie is reordering my data that includes 10,000 and 100,000 so that 100,000 comes before 20,000. How can I enforce the order of my columns? I tried using factor but can't quite figure this out. Thanks!
A simple workaround would be to make sure your data is stored in a format where all numbers have the same amount of digits (23,000 -> 023,000). This will ensure a right ordering. If you mind having these entries also in the legend, rename the entries it with scale_fill_manual