Graphics Reference
In-Depth Information
graph bar hours, over(occ7) blabel(bar, position(outside) ) exclude0
This graph is similar to the previous
ones, but the bars are vertical, and we
now are labeling the bars with the
height of the bar. The label is placed
just outside the bar.
Uses nlsw.dta & scheme vg palec
42.9886
39.3862
38.6349
37.7603
35.9284
34.9804
31.9754
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
graph bar hours, over(occ7, axis(outergap(*5)) ) asyvars
blabel(bar, position(base) gap(-4) )
To put the labels just under the bars,
we use position(base) to put the
labels at the base but also specify
gap(-4) to move the labels below the
bars. Adding the axis(outergap(*5))
option (see Bar : Cat axis (123)), we
make enough room so the labels do not
bump into the legend.
Uses nlsw.dta & scheme vg palec
37.7603
42.9886
35.9284
34.9804
39.3862
31.9754
38.6349
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
graph bar hours, over(occ7) asyvars
blabel(bar, position(base) box bfcolor(white) size(large) format(%5.2f) )
Here, we show more options that you
can use to customize the display of the
labels. We add a number of options to
place a box around the label, make the
background fill color white, increase the
size of the text to be large, and display
the means with a width of 5 and 2
decimal places. See Options : Textboxes
(303) for additional examples of how to
use textbox options to control the
displayoftext.
Uses nlsw.dta & scheme vg palec
37.76
42.99
35.93
34.98
39.39
31.98
38.63
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
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