Graphics Reference
In-Depth Information
graph box wage, nooutsides over(occ7, label(angle(45)) ) over(collgrad)
In this example, the levels of occ7
might overlap each other. Using the
label(angle(45)) option makes the
angle of the labels for occ7 45 degrees,
and they do not overlap.
Uses nlsw.dta & scheme vg rose
25
20
15
10
5
0
not college grad
college grad
excludes outside values
graph box wage, nooutsides over(occ7, label(alternate) ) over(collgrad)
Another way we can avoid overlapping
is by adding the label(alternate)
option. As you can see, the labels
alternate in height, avoiding
overlapping.
Uses nlsw.dta & scheme vg rose
25
20
15
10
5
0
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
Mgmt
Sales
Cler.
Operat.
Labor
Other
Prof
not college grad
college grad
excludes outside values
graph box wage, nooutsides over(occ7, label(labsize(small)) ) over(collgrad)
We can instead make the size of the
labels smaller to make them fit without
overlapping. Here, we make the label
size small using the
label(labsize(small)) option. See
Styles : Textsize (344) for other values
you could choose for labsize() .
Uses nlsw.dta & scheme vg rose
25
20
15
10
5
0
Prof
Mgmt Sales
Cler. Operat. Labor Other
Prof
Mgmt Sales
Cler. Operat. Labor Other
not college grad
college grad
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