YuLab-SMU / scatterpie

:art: scatter pie plot
https://cran.r-project.org/package=scatterpie
60 stars 16 forks source link

How to enforce column order for cols? #15

Open lizhaney opened 6 years ago

lizhaney commented 6 years ago

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

GeohunterX commented 4 years ago

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