Graphics Reference
In-Depth Information
twoway bar close tradeday
Here is an example of a twoway bar
plot. For each
x
-value, a bar is shown
corresponding to the height of the
y
-variable. Note that this shows a
continuous
-variable as compared with
the graph bar command, which would
be useful when we have a categorical
x
x
-variable. See Twoway : Bar (62) for
more details about bar plots.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
twoway rarea high low tradeday, sort
This example illustrates the use of
rarea (range area) to graph the high
and low prices with the area filled. If
we used rline (range line), the area
would not be filled. See Twoway : Range
(64) for more details.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
twoway rconnected high low tradeday, sort
The rconnected (range connected)
command makes a graph similar to the
previous one, except that a marker is
shown at each value of the
-variable
and the area in between is not filled. If
we instead used rscatter (range
scatter), the points would not be
connected. See Twoway : Range (64) for
more details.
Uses spjanfeb2001.dta & scheme vg s2c
x
0
10
20
30
40
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