Graphics Reference
In-Depth Information
twoway rarea high low date, name(hilo)
We make a graph showing the high and
low closing price of the S&P 500 for
2001 and save this graph in memory,
naming it hilo .
Uses sp2001ts.dta & scheme vg s2c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
twoway spike volmil date, name(vol)
We can make another graph that shows
the volume (millions of shares sold per
day) for 2001 and save this graph in
memory, naming it vol .
Uses sp2001ts.dta & scheme vg s2c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
graph combine hilo vol
We can now use the graph combine
command to combine these two graphs
into a single graph. The graphs are
displayed as a single row, but say that
we would like to display them in a
single column.
Uses sp2001ts.dta & scheme vg s2c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
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