Graphics Reference
In-Depth Information
twoway scatter propval100 faminc, xlabel(15000(1000)30000, angle(45) )
If we label an axis with a large number
of values (and especially with wide
values), the labels may crowd each
other and overlap. Here, we label the
x
-axis from 15000 to 30000 in
increments of 1000. To avoid
overlapping, we add the angle(45)
option to show the labels at a 45-degree
angle.
Uses allstatesdc.dta & scheme vg s1c
1979 Median Family Inc.
twoway scatter propval100 faminc, xlabel(15000(1000)30000, alternate )
We can also avoid overlapping the axis
labels by adding the alternate option
to xlabel() . The labels are now
displayed in two rows in alternating
rows, so they are not crowded or
overlapped.
Uses allstatesdc.dta & scheme vg s1c
15000
16000
17000
18000
19000
20000
21000
22000
23000
24000
25000
26000
27000
28000
29000
30000
1979 Median Family Inc.
twoway scatter propval100 faminc, ylabel(0(5)90, labsize(vsmall) )
We can control the size of labels with
the labsize() option. For example, we
might want to label our
-axis from 0
to 90, incrementing by 5. The labels
would ordinarily overlap, but if we add
the labsize(vsmall) option, the very
small labels no longer overlap.
Uses allstatesdc.dta & scheme vg s1c
y
15000
20000
25000
30000
1979 Median Family Inc.
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