Graphics Reference
In-Depth Information
graph hbox wage, nooutsides over(occ5, label(labcolor(maroon)) )
over(collgrad)
Using the label(labcolor(maroon))
option, we change the label color for
occ5 to maroon. See Styles : Colors
(328) for more details about other
colors you could choose.
Uses nlsw.dta & scheme vg rose
Prof/Mgmt
Sales
not college grad
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
college grad
Clerical
Labor/Ops
Other
0
5
10
15
20
25
hourly wage
excludes outside values
graph hbox wage, nooutsides
over(occ5, label(ticks tlwidth(thick) tlength(*2) tposition(crossing)) )
over(collgrad)
We can use the label(ticks) option
to place ticks under each box. We also
modify the attributes of the ticks,
making the tick thick, twice as long as
normal, and crossing the
Prof/Mgmt
Sales
not college grad
Clerical
Labor/Ops
-axis. See
[ G ] cat axis label options for more
details and other options for controlling
ticks.
Uses nlsw.dta & scheme vg rose
x
Other
Prof/Mgmt
Sales
college grad
Clerical
Labor/Ops
Other
0
5
10
15
20
25
hourly wage
excludes outside values
graph hbox wage, nooutsides over(occ5, label(labgap(*5)) ) over(collgrad)
The label(labgap(*5)) option
controls the gap between the label and
the ticks. Here, we increase the gap
between the label for the levels of occ5
and the axis line to five times its
normal size.
Uses nlsw.dta & scheme vg rose
Prof/Mgmt
Sales
not college grad
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
college grad
Clerical
Labor/Ops
Other
0
5
10
15
20
25
hourly wage
excludes outside values
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