Graphics Reference
In-Depth Information
twoway rspike high low tradeday, xscale(off noline)
We could suppress the display of the
x
-axis line completely by using the
xscale(noline) option.
Uses sp2001.dta & scheme vg s2m
twoway rspike high low tradeday, yscale(range(700 1400))
The yscale(range()) option can be
used to expand the scale of the
-axis
without needing to expand the labels
for the axis (as the ylabel() option
would). In this example, we have
expanded the range of the
y
-axis from
700 to 1400. However, this example
does not show the real utility of this
option. Note that range() can only be
used to expand the scale, not contract
it.
Uses sp2001.dta & scheme vg s2m
y
0
50
100
150
200
250
Trading day number
twoway (rspike high low tradeday)
(line volmil tradeday, sort yaxis(2))
Consider that, in addition to the spike
graph that shows the high and low
values for a given trading day, we wish
to see the volume for a given trading
day. We can combine the plots into a
single graph, but this is dicult to read
because the two plots overlap.
Uses sp2001.dta & scheme vg s2m
0
50
100
150
200
250
Trading day number...
High price/Low price
Volume (millions)
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