Dear Statalist Community,
currently I'm trying to set up a histogram using Stata's histogram command. Thereby I'm stuck on a probably very basic problem, for which however I couldn't find proper solution in old forum topics or via google. In the histogram I show the number of Merger&Acquisitions Deals announced in the period from 1993-1998 on a yearly basis.
Attached you can find my produced graph with the corresponding bar values arising from the command:
As you can see easily, the bars labeled for years 1993,1994,1995 contain values smaller than 10000 and consequently are labeled "correctly", while for years 1996 - 1998 we have values larger than 10000 and they are labeled in a format with "1.1e+04, 1.2+e04 and 1.4+e04".
Is there a possibility to change manually the labeled bars for years 1996 - 1998 like we can do in a standard bar plot?
I already tried to use an alternative solution via the graph bar command, where I use a variable DealNumber as an unique identifier for the corresponding Merger and Acquisitions:
However running this code gives me an error message of type mismatch.
Any help, solutions and remarks are highly appreciated
Thank you in advance for you help
Best regards
Philipp
currently I'm trying to set up a histogram using Stata's histogram command. Thereby I'm stuck on a probably very basic problem, for which however I couldn't find proper solution in old forum topics or via google. In the histogram I show the number of Merger&Acquisitions Deals announced in the period from 1993-1998 on a yearly basis.
Attached you can find my produced graph with the corresponding bar values arising from the command:
Code:
histogram year_MandA, discrete frequency addlabel xlabel(1992(1)1999) ylabel(5000 "5000" 10000 "10000" 15000 "15000")
Is there a possibility to change manually the labeled bars for years 1996 - 1998 like we can do in a standard bar plot?
I already tried to use an alternative solution via the graph bar command, where I use a variable DealNumber as an unique identifier for the corresponding Merger and Acquisitions:
Code:
graph bar (count) DealNumber, over(year_MandA) blabel(bar)
Any help, solutions and remarks are highly appreciated
Thank you in advance for you help
Best regards
Philipp
Comment