Hi,
I want to draw a histogram that meets two requirements:


Does anyone know how to modify the addlabels so that they look nice in a horizontal histogram?
Thanks in advance!
Kind regards
Sabine
I want to draw a histogram that meets two requirements:
- displaying value labels readable
- displaying the frequency of each category.
Code:
qui sum V3_2 local mw = r(mean) hist V3_2, addlabels xline(`mw', lwidth(vthick)) frequ /*percent*/ discrete xlabel(1 (1) 5, valuelabel angle(horizontal)) /* */ color(none) lwidth(medthick) lcolor(black) /* */ xtitle("Häufigkeit") ytitle("") hist V3_2, addlabels yline(`mw', lwidth(vthick)) frequ /*percent*/ discrete ylabel(1 (1) 5, valuelabel angle(horizontal)) /* */ color(none) lwidth(medthick) lcolor(black) /* */ xtitle("Häufigkeit") horizontal ytitle("")
Does anyone know how to modify the addlabels so that they look nice in a horizontal histogram?
Thanks in advance!
Kind regards
Sabine
Comment