Graphics Reference
In-Depth Information
graph dot hours, over(occ7)
ylabel(30(5)45)
We use the
ylabel()
option to label
the
-axis from 30 to 45 by increments
of 5. See
Options : Axis labels
(256) and
[
G
]
axis label options
for more
details. Please disregard any references
to
xlabel()
since that option is not
valid when using
graph dot
. Note that
the
y
Prof
Mgmt
Sales
Cler.
Operat.
-axis still begins at 0, but see the
next example for how you can override
this.
Uses nlsw.dta & scheme vg teal
y
Labor
Other
30
35
40
45
mean of hours
graph dot hours, over(occ7) ylabel(30(5)45)
exclude0
When we add the
exclude0
option, the
dot plot does not automatically begin
at 0. In this case, it starts at 30 since
that is the value we specified as the
starting point on the
ylabel()
option.
Uses nlsw.dta & scheme vg teal
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
30
35
40
45
mean of hours
graph dot hours, over(occ7)
yscale(off)
We can use the
yscale(off)
option 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 dot
.
Uses nlsw.dta & scheme vg teal
Prof
Mgmt
Sales
Cler.
Operat.
Labor
Other
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.