Graphics Reference
In-Depth Information
graph hbox wage, nooutsides over(occ5) over(collgrad, label(labgap(*7)) )
Using the label(labgap(*7)) option,
we increase the gap associated with
collgrad . This example makes the gap
between collgrad and occ5 seven
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
graph box wage, nooutsides over(occ7, axis(outergap(*20)) )
We use the axis(outergap()) option
to increase the gap between the labels
of the
25
-axis and the outside of the
graph. As you can see, this increases
the space between the labels for occ7
and the bottom of the graph.
Uses nlsw.dta & scheme vg rose
x
20
15
10
5
0
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
excludes outside values
-axis, but we have not
yet looked at how to add a title to that axis. We might be tempted to use xtitle() , but
that option is not valid for a categorical axis. Instead, we can use other means for giving
titles to these axes, as illustrated in the examples below using the vg s1c scheme.
So far, we have focused on labeling the values on the categorical
x
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