Hello,

I'm trying to create box plots displaying changes in occupational shares for occupation 1-9, separated by the indicator variable "advanced economies" which is 1 for advanced economies and 0 otherwise. The graph in its original form looks like this
Array
The code I used is
Code:
graph hbox mean_d_occ, over(o_id, relabel(1 "Occ1" 2 "Occ2" 3 "Occ3" 4 "Occ4" 5 "Occ5" 6 "Occ6" 7 "Occ7" 8 "Occ8" 9 "Occ9")) ///
ytitle(, alignment(middle)) nooutsides  by(ae)
Now I wanted to change the colors of certain occupation to red, for which I changed the code as follows
Code:
graph hbox mean_d_occ, over(o_id, relabel(1 "Occ1" 2 "Occ2" 3 "Occ3" 4 "Occ4" 5 "Occ5" 6 "Occ6" 7 "Occ7" 8 "Occ8" 9 "Occ9")) ///
asyvar box(1, color(navy)) box(2, color(navy)) box(3, color(navy)) box(5, color(navy)) box(4, color(maroon)) box(6, color(maroon)) box(7, color(maroon)) box(8, color(navy)) box(9, color(maroon)) ///
ytitle(, alignment(middle)) nooutsides  by(ae)
But by adding the color line (beginning with asyvar) to my code, the occupation labels moved to the legend
box, which looks like this:

Array

Now I would like to get the labels back to the vertical axis. Any ideas on this?

Also I would like to move the advanced economies to the left and name them "advanced economies" instead of 1 and the others "emerging and developing economies" instead of 0.
Lastly, is there a way to get rid of the labels "Graphs by Advanced Economies" and "exclude outside values?

Thanks in advance for your help! :-)

Regards,
Jonas