Add Custom Labels to your Bar Graph
You can use the relabel option within the over option in bar graphs to change the labels of the bars. It is important to note here that although the value labels attached to your variable may start at zero, the bar labels always start at one. For example, in the auto.dta dataset in Stata the foreign variable is labelled as 0 = domestic and 1 = foreign. However, for the purposes of a bar graph, the numbers change to 1 = domestic and 2 = foreign.
To generate this graph in Stata, use the following commands: