Graphics Reference
In-Depth Information
5.2
Options for groups, over options
This section considers some of the options that can be used with the
over()
and
yvaroptions()
options for customizing the display of the boxes. We will focus on con-
trolling the spacing between the boxes and the order in which the boxes are displayed.
Other options that control the display of the
x
-axis, such as the labels, are covered in
Box : Cat axis
(168). For more information on the
over()
options covered in this section,
see the
over subopts
table in [
G
]
graph box
. We begin by considering options that control
the spacing among the boxes and use the
vg past
scheme.
graph hbox tenure, nooutsides over(occ5) over(collgrad)
Consider this graph that shows box
plots of
tenure
broken down by
occ5
and
collgrad
.Weusethe
nooutsides
option to suppress the display of
outside values. For the rest of the
graphs in this section, there would be a
large number of outside values, which
would make the graphs very cluttered,
so we will include the
nooutsides
option for each example.
Uses nlsw.dta & scheme vg past
Prof/Mgmt
Sales
not college grad
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
college grad
Clerical
Labor/Ops
Other
0
5
10
15
20
Curr. work exper.
excludes outside values
graph hbox tenure, nooutsides over(occ5,
gap(*3)
) over(collgrad)
We can change the gap between the
levels of
occ5
. Here, we make that gap
twice as large as it normally would.
This leads to narrow boxes with a
sizable gap between them.
Uses nlsw.dta & scheme vg past
Prof/Mgmt
Sales
not college grad
Clerical
Labor/Ops
Other
Prof/Mgmt
Sales
college grad
Clerical
Labor/Ops
Other
0
5
10
15
20
Curr. work exper.
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.