Graphics Reference
In-Depth Information
twoway scatter propval100 faminc,
ylabel(0(20)100, grid glcolor(gs8) glpattern(solid) )
ymlabel(10(20)90, grid glcolor(gs11) glpattern(shortdash) )
We can use different kinds of grid lines
for the major and minor axis labels. In
this example, we have a solid, darker
gray line for the major axis labels and a
lighter gray, short, dashed line for the
minor axis labels. We include the grid
option to ensure that the grid is
displayed.
Uses allstatesdc.dta & scheme vg s1c
15000
20000
25000
30000
1979 Median Family Inc.
8.6
Controlling axis scales
This section provides more details about axis scale options, which allow us to control
whether an axis is displayed, where it is displayed, the direction it is displayed, and the scale
of the axis. For more information about these options, see [ G ] axis scale options . This
section begins by using data on the S&P 500 from January 2, 2001, to December 31, 2001,
stored in the file sp2001 . For simplicity, we will use tradeday on the
-axis, representing
the trading day of the year. For this section, we will use the vg s2m scheme.
x
twoway rspike high low tradeday
First, consider this rspike graph,
which shows the high and low prices
across 248 trading days.
Uses sp2001.dta & scheme vg s2m
0
50
100
150
200
250
Trading day number
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