Graphics Reference
In-Depth Information
twoway scatter ownhome propval100,
ytitle("Percent who own home", size(huge) )
Here, we use the size(huge) option to
make the title on the
y
-axis huge. For
other text sizes you could choose, see
Styles : Textsize (344).
Uses allstates.dta & scheme vg s2m
0
20
40
60
80
100
% homes cost $100K+
twoway scatter ownhome propval100, xlabel(0(10)100) ylabel(40(5)80)
We use the ylabel() and xlabel()
options to control the labeling of the
x
-
and
-axis from 0
to 100, incrementing by 10, and the
y
y
-axes. We label the
x
-axis from 40 to 80, incrementing by 5.
See Options : Axis labels (256) for more
details on labeling axes.
Uses allstates.dta & scheme vg s2m
0
10
20
30
40
50
60
70
80
90
100
% homes cost $100K+
twoway scatter ownhome propval100, xlabel(#10) ylabel(#5)
In this example, we use the
xlabel(#10) option to ask Stata to use
approximately 10 nice labels and the
ylabel(#5) option to use
approximately 5 nice labels. In this
case, our gentle request was observed
exactly, but in some cases, Stata will
choose somewhat different values to
create axis labels it believes are logical.
Uses allstates.dta & scheme vg s2m
0
10
20
30
40
50
60
70
80
90
% homes cost $100K+
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