asjadnaqvi / stata-alluvial

A Stata package for alluvial plots
MIT License
5 stars 3 forks source link

Show percentages % #19

Open MinZhang1987 opened 1 year ago

MinZhang1987 commented 1 year ago

Hello,

Many thanks for the amazing graph package. I wonder if it's possible to show percentages%. For example, instead of 0.08, the labels may have the options to show 8.00%.

Many thanks!

ericmelse commented 1 year ago

Plotting percentages in Stata graphics is a real challenge. Personally, I consider it the 'Achilles heel' of Stata. But, I agree that to have the choice between reporting fractions (percentages) like: 0.15 or .15 or 15% (and controlling decimals like 15.1% or 15.12%) is so very much 'standard functionality' that is bizar that we have to resort to 'heavy lifted coding' to get such things done in Stata. Especially rounding fraction results for percentages is most awkward. Asjad, I have my own 'crude' solutions that I could share for inspiration should you have to start from scratch for this.