I can't see how any functions are relevant here, but perhaps other options are closer to what you want. With your data example, I go
to get this
Code:
su vol if marr==1, meanonly local max = r(max) su p_vol if marr==1, meanonly local max = max(`max', r(max)) tabplot vol p_vol if marr==1, showval bfcolor(green*0.2) yasis xasis legend(cols(1)) scheme(s1color) /// ytitle(Total Hours/Mins) title(Vol (hrs/mins:marr), size(medsmall)) /// xtitle(Total Hours/Mins) yla(0/`max') xla(0/`max') aspect(1) name(vol_marr, replace)
Comment