Dear Stata Community,
I am having difficulty in my histogram graph to add labels to the height of the bar. I have two variables named "pre_math_score" and "post_math_score". I have created a histogram with these two variables and they overlap each other. My problem is when I want to put addlabels command, stata says that addlabel option is not allowed. Help me please, how to addlabels in each bar.
Here is my code
twoway (histogram math_score_pre, percent width(1) color(none) lcolor(black)) ///
(histogram math_score_post, percent width(1) color(gs8) lcolor(black)), ///
xtitle("Math Score") ///
ylabel(#10) ///
xlabel(1(1)10) ///
legend(label(1 "Before Training Math Score") label(2 "After Training Math Score")) ///
scheme(white_tableau)
I am having difficulty in my histogram graph to add labels to the height of the bar. I have two variables named "pre_math_score" and "post_math_score". I have created a histogram with these two variables and they overlap each other. My problem is when I want to put addlabels command, stata says that addlabel option is not allowed. Help me please, how to addlabels in each bar.
Here is my code
twoway (histogram math_score_pre, percent width(1) color(none) lcolor(black)) ///
(histogram math_score_post, percent width(1) color(gs8) lcolor(black)), ///
xtitle("Math Score") ///
ylabel(#10) ///
xlabel(1(1)10) ///
legend(label(1 "Before Training Math Score") label(2 "After Training Math Score")) ///
scheme(white_tableau)
Comment