asjadnaqvi / stata-alluvial

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

add option to control the gap between the value labels and the wedges #14

Closed ericmelse closed 5 months ago

ericmelse commented 1 year ago

The value labels are positioned tighly left of right of the wedges, like:

sysuse nlsw88.dta, clear
label define racelbl 3 ".    O", modify
alluvial race married collgrad smsa union, palette(CET C7) labs(*1.4) showtot boxw(*16) shares vals(*1.2) valf(%12.2f) 

which results in: Alluvial_test_1_20230418 As such that is fine, but, to be able to control the gap would further enhance the visualization. Possibly something like:

valgap(str)
The gap of the displayed values labels from the left or right side of the wedges. Default is labg(0) for no gap. 
asjadnaqvi commented 1 year ago

valgap() option is already there. Somehow it didn't make it in the help file. Will update it.