Graphics Reference
In-Depth Information
twoway scatter propval100 region,
xlabel(1 "NorthEast" 2 "NorthCentral" 3 "South" 4 "West")
If region were not labeled, or if we
wanted different labels, we could
indicate those labels using the
xlabel() option, as illustrated here.
Uses allstatesdc.dta & scheme vg s1c
NorthEast
NorthCentral
South
West
Census region
twoway scatter propval100 faminc, xlabel(, format(%8.0gc) )
We can change the formatting of the
labels using the format() option, just
as we would using a format statement.
In this example, we format income
using a comma format to make the
larger numbers more readable.
Uses allstatesdc.dta & scheme vg s1c
15,000
20,000
25,000
30,000
1979 Median Family Inc.
twoway scatter propval100 faminc, ylabel(, angle(0) )
We can change the angles of the labels
from their default orientation. By
default, the values on the
100
-axis are
shown at a 90-degree angle, but we can
use the ylabel(, angle(0)) to display
the labels without rotation.
Uses allstatesdc.dta & scheme vg s1c
y
80
60
40
20
0
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