Graphics Reference
In-Depth Information
graph combine hilo vol, cols(1) imargin(b=1 t=1)
Here, we use the imargin(b=1 t=1)
option to make the margin at the top
and bottom of the graphs to be very
small before combining them. However,
we might want the lower graph of
volume to be smaller.
Uses sp2001ts.dta & scheme vg s2c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
twoway spike volmil date, ylabel(1 2) fysize(25) name(vol, replace)
Using the fysize() (force
size)
option makes the graph 25% of its
normal size. We use this instead of
ysize() because the graph combine
command does not respect the ysize()
or xsize() options. For aesthetics, we
also reduce the number of labels. We
save this graph in memory, replacing
the existing graph named vol .
Uses sp2001ts.dta & scheme vg s2c
y
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
Date
graph combine hilo vol, cols(1) imargin(b=1 t=1)
We combine these graphs again, and
the combined graph looks pretty good.
We might further tinker with the graph,
changing the xtitle() for the volume
graph to be shorter or modifying the
xlabel() for the volume graph.
Uses sp2001ts.dta & scheme vg s2c
1Jan01
1Apr01
1Jul01
1Oct01
1Jan02
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