Graphics Reference
In-Depth Information
3.2
Controlling axes
This section looks at labeling axes in scatterplot matrices. It shows how to label axes of
scatterplots, control the scale of axes, and insert titles along the diagonal. For more details,
see Options : Axis labels (256), Options : Axis scales (265) and [ G ] axis options . This section
uses the vg s2c scheme.
graph matrix urban propval100 borninstate
Let's look at a scatterplot matrix of
three variables: urban , propval100 ,
and borninstate .
Uses allstates.dta & scheme vg s2c
0
50
100
100
Percent
urban
1990
80
60
40
100
% homes
cost
$100K+
50
0
80
% born in
state of
residence
60
40
20
40
60
80
100
20
40
60
80
graph matrix urban propval100 borninstate,
xlabel(30(10)100, axis(1)) ylabel(30(10)100, axis(1))
The way you control the axis labels
with a scatterplot matrix is somewhat
different than with other kinds of
graphs. Here, we use the xlabel() and
ylabel() options to control the
0
50
100
100
90
80
Percent
urban
1990
70
60
4 50
x
-and
30
100
y
-labels for the first variable, urban ,to
be scaled 30 to 100 in increments of 10.
This applies to the first variable
because we specified the axis(1)
option.
Uses allstates.dta & scheme vg s2c
% homes
cost
$100K+
50
0
80
% born in
state of
residence
60
40
20
30 40 50 60 70 80 90 100
20
40
60
80
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