Hi,
I'm having trouble labelling a bar graph in Stata. The current output looks like this:

Produced by the following code:
So, the data is grouped by three categories which I have labelled and these are displayed correctly in the bottom. The bars represent different years, which is why I have labelled those 1 to 5.
However, Stata still displays 'mean of CAAR_1", etc. rather than the label "1" I have given that variable.
I have checked the manual and these forums and tried almost all the options. One suggested solution I have found is to use tabplot (ssc install) as it will always number bars. But it seems to me a simpler solution should exist. But all the options I try either effect the Y-label or the label of over().
I'm having trouble labelling a bar graph in Stata. The current output looks like this:
Produced by the following code:
Code:
//Label variables lab var CAAR_1 "1" lab var CAAR_2 "2" lab var CAAR_3 "3" lab var CAAR_4 "4" lab var CAAR_5 "5" graph bar CAAR_1 CAAR_2 CAAR_3 CAAR_4 CAAR_5, over(group) ascategory /// title("Abnormal returns per group") ytitle("Size-adjusted return (%)")
However, Stata still displays 'mean of CAAR_1", etc. rather than the label "1" I have given that variable.
I have checked the manual and these forums and tried almost all the options. One suggested solution I have found is to use tabplot (ssc install) as it will always number bars. But it seems to me a simpler solution should exist. But all the options I try either effect the Y-label or the label of over().
Comment