Graphics Reference
In-Depth Information
graph bar wage, over(occ7, label(nolabels)) blabel(group)
By adding the blabel(group) (bar
label) option, the bars are labeled with
the name of the group to which the bar
belongs. See Bar : Legend (130) for more
about blabel() .
Uses nlsw.dta & scheme vg s2c
Mgmt
Prof
Cler.
Other
Sales
Operat.
Labor
graph bar wage, over(occ7, label(angle(45) )) over(collgrad)
This graph shows wages broken down
by occupation and by whether one
graduated college. The
label(angle(45)) option is added to
rotate the labels for occupation by 45
degrees. If this had been omitted, the
labels would have overlapped each
other.
Uses nlsw.dta & scheme vg s2c
not college grad
college grad
graph bar wage, over(occ7, label(alternate) ) over(collgrad)
Compare this graph with the previous
example. This example uses the
label(alternate) strategy to avoid
overlapping by alternating the labels for
occupation.
Uses nlsw.dta & scheme vg s2c
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
Mgmt
Sales
Cler.
Operat.
Labor
Other
Prof
not college grad
college grad
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