Graphics Reference
In-Depth Information
graph box wage, nooutside over(occ5) over(collgrad) asyvar
ylabel(5(10)25, angle(0))
We can add the
angle(0)
option to
modify the angle of the
25
-labels, in this
case making them display horizontally.
Uses nlsw.dta & scheme vg lgndc
y
Prof/Mgmt
Sales
15
Clerical
Labor/Ops
5
Other
not college grad
college grad
excludes outside values
graph box wage, nooutside over(occ5) over(collgrad) asyvar
ylabel(5(10)25, nogrid)
The
nogrid
option suppresses the
display of the grid. Note that this
option is placed within the
ylabel()
option, thus suppressing the grid for
the
Prof/Mgmt
-axis. (With box plots, there is
never a grid with respect to the
y
Sales
-axis.)
If the grid were absent and we wanted
to include it, we could add the
grid
option. For more details, see
Options : Axis labels
(256).
Uses nlsw.dta & scheme vg lgndc
x
Clerical
Labor/Ops
Other
not college grad
college grad
excludes outside values
graph box wage, nooutside over(occ5) over(collgrad) asyvar
yscale(off)
We can use
yscale(off)
to turn off the
y
-axis. See
Options : Axis scales
(265)
and [
G
]
axis scale options
for more
details. Please disregard any references
to
xscale()
, since that option is not
valid when using
graph box
.
Uses nlsw.dta & scheme vg lgndc
Prof/Mgmt
Sales
Clerical
Labor/Ops
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.