Is it possible to change the order of the graph by_option, e.g the sequence
of left to right of a repeated graph, in which the by variable is a string
variable ?
I am using Stata 8.2, latest update and been unable to find the answer in
the manual.
Example:
sysuse nlsw88, clear
graph hbar wage, over(occ, sort(1)) by( union)
Now nonunion is shown left and union shown right- Is it possible to reverse
this order to union left and nonunion right?
I would use the official Stata -encode-, or possibly my own -sencode-
(downloadable from SSC), to code your string variable to a labelled numeric
variable in the order you want. Then use the numeric variable with the
graphics -by()- option.