Graphics Reference
In-Depth Information
twoway scatter propval100 faminc, ymtick(10(20)90)
We can use the ymtick() option to add
minor ticks to the graph. For example,
here we add minor ticks at 10, 30, 50,
70, and 90. The m in ymtick() stands
for minor.
Uses allstatesdc.dta & scheme vg s1c
15000
20000
25000
30000
1979 Median Family Inc.
twoway scatter propval100 faminc, ymtick(##10)
The default graph had major labels for
the
-axis at 0, 20, 40, 60, 80, and 100.
We can place 9 minor ticks between
major ticks with the ymtick(##10)
option. Note that the value of 10
includes the 9 minor ticks plus the 10th
major tick.
Uses allstatesdc.dta & scheme vg s1c
y
15000
20000
25000
30000
1979 Median Family Inc.
twoway scatter propval100 faminc, ylabel(0(10)100, noticks )
If we wanted to label the
y
-axis using
values ranging from 0 to 100,
incrementing by 10 but suppressing the
display of ticks, we could use the
noticks 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