Graphics Reference
In-Depth Information
graph bar wage, over(occ7) asyvars legend(position(1) ring(0)) exclude0
Adding exclude0 no longer forces the
y
12
Prof
Mgmt
-axis to start at 0 and makes room in
the top corner of the plot region for the
legend. See Bar : Y-axis (143) for more
details about the exclude0 option.
Uses nlsw.dta & scheme vg blue
Sales
Cler.
Operat.
Labor
Other
10
8
6
4
graph hbar wage, over(occ7) asyvars legend(cols(1) position(9) )
We switch to making this a horizontal
bar chart and move the legend using
the position(9) option to place the
legend in the 9 o'clock position. We
also use the cols(1) option to display
the legend as a single column.
Uses nlsw.dta & scheme vg blue
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
2
4
6
8
10
mean of wage
graph hbar wage, over(occ7) asyvars legend(cols(1) position(9) textfirst )
Adding the textfirst option places
the description of the key before the
symbol in the legend.
Uses nlsw.dta & scheme vg blue
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
2
4
6
8
10
mean of wage
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.
Search WWH ::




Custom Search