Change the Order of Graphs Made Using By in Stata
Stata allows you to generate a set of graphs broken down by levels of a variable. The graphs will usually order as the variable is ordered, however you can create another variable to alter the order the graphs appear. We do this using the extensions provided to the egen command by the egenmore package on the SSC.
To create this graph in Stata, you first need to download the egemore package from the SSC, which you do in Stata using the following command:
To generate this graph in Stata, use the following commands: