Graphics Reference
In-Depth Information
twoway scatter propval100 faminc, xlabel(minmax) ylabel(none)
Here, we use the xlabel(minmax)
option to label the
-axis only with the
minimum and maximum and use
ylabel(none) ,sothatthe
x
-axis will
have no major labels or ticks.
Uses allstatesdc.dta & scheme vg s1c
y
14591
28395
1979 Median Family Inc.
twoway scatter propval100 faminc, ymlabel(10(20)90)
The default graph had major labels for
the
-axis at 0, 20, 40, 60, 80, and 100.
We could add minor labels for the
y
y
-variable at 10, 30, 50, 70, and 90
using the ymlabel(10(20)90) option.
The m in ymlabel() stands for minor.
Uses allstatesdc.dta & scheme vg s1c
15000
20000
25000
30000
1979 Median Family Inc.
twoway scatter propval100 faminc, ytick(10(10)90)
The default graph had major ticks for
the
y
-axis at 0, 20, 40, 60, 80, and 100.
We can add major ticks ranging from
10 to 90, incrementing by 10, using the
ytick(10(10)90) option.
Uses allstatesdc.dta & scheme vg s1c
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