Graphics Reference
In-Depth Information
twoway tsline close, clwidth(thick) clcolor(navy)
As with twoway line ,youcanuse
connect options to control the line.
Here, we make the line thick and navy.
Uses sp2001ts.dta & scheme vg s1c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
twoway tsline close
if (date >= mdy(1,1,2001)) & (date <= mdy(3,31,2001))
You can use if to subset cases to
graph. Here, we graph the closing
prices between January 1, 2001, and
March 31, 2001. See the next example
for an easier way of doing this.
Uses sp2001ts.dta & scheme vg s1c
1Jan01
1Feb01
1Mar01
1Apr01
Date
twoway tsline close if tin(01jan2001,31mar2001)
When using the tsline command, you
can use tin() (time in between) to
specify that you want to graph just the
cases between January 1, 2001, and
March 31, 2001, inclusively.
Uses sp2001ts.dta & scheme vg s1c
1Jan01
1Feb01
1Mar01
1Apr01
Date
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