Graphics Reference
In-Depth Information
twoway scatter ownhome propval100, xlabel(#10) ylabel(#5, nogrid )
Using the nogrid option, we can
suppress the display of the grid. Note
that this option is placed within the
ylabel() option, thus suppressing the
grid for the
-axis. If the grid were
absent, and we wished to include it, we
could add the grid option. (You can
also specify grid or nogrid within the
xlabel() option to control grids for the
x
y
-axis.) For more details, see
Options : Axis labels (256).
Uses allstates.dta & scheme vg s2m
0
10
20
30
40
50
60
70
80
90
% homes cost $100K+
twoway scatter ownhome propval100, xlabel(#10) ylabel(#5, nogrid)
yline(55 75, lwidth(thin) lcolor(black) lpattern(dash))
The yline() option is used to add a
thin, black, dashed line to the graph
where
equals 55 and 75.
Uses allstates.dta & scheme vg s2m
y
0
10
20
30
40
50
60
70
80
90
% homes cost $100K+
twoway scatter ownhome propval100, xscale(alt)
Here, we use the xscale() option to
request that the
% homes cost $100K+
x
-axis be placed in its
alternate position, in this case at the
top instead of at the bottom. To learn
more about axis scales, including
suppressing, extending, or relocating
them, see Options : Axis scales (265).
Uses allstates.dta & scheme vg s2m
0
20
40
60
80
100
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