Graphics Reference
In-Depth Information
graph hbar hours, over(occ7, label(nolabels))
blabel(group, position(inside) )
With the position(inside) option, we
can place the group label inside the
bar. By default, inside refers to the
very “top” of the bar but on the inside
of the bar. Note that, because we chose
the vg palec scheme, the bar colors are
pale, so the labels within the bars are
readable.
Uses nlsw.dta & scheme vg palec
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
10
20
30
40
mean of hours
graph hbar hours, over(occ7, label(nolabels))
blabel(group, position(base) )
With the position(inside) option, we
can place the label inside the bar, but
at the base of the bar. You can also
specify position(center) to place the
label in the center of the bar.
Uses nlsw.dta & scheme vg palec
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
10
20
30
40
mean of hours
graph hbar hours, over(occ7, label(nolabels))
blabel(group, position(base) gap(*10) )
The gap() option can be used to
fine-tune the placement of the label.
Here, we position the label at the base
but increase the gap between the label
and the base to be 10 times its normal
size. You can also use the gap() option
with position(inside) to position the
label with respect to the top of the bar.
Uses nlsw.dta & scheme vg palec
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
0
10
20
30
40
mean of hours
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