scatterpie icon indicating copy to clipboard operation
scatterpie copied to clipboard

How to enforce column order for cols?

Open lizhaney opened this issue 6 years ago • 1 comments

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!

image

lizhaney avatar Jul 31 '18 22:07 lizhaney

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

GeohunterX avatar Sep 08 '20 13:09 GeohunterX