Graphics Reference
In-Depth Information
twoway connected close tradeday, sort
clcolor(cranberry) clpattern(dash) clwidth(thick)
You can control the look of the lines
with connect options such as
clwidth() , clcolor() ,and
clpattern() (connect line pattern). In
this example, we make the line
cranberry, dashed, and thick. See
Options : Connecting (250) for more
details on connecting points.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
twoway connected high low tradeday, sort
You can graph multiple variables at
once. In this case, we graph the high
and low prices across trading days.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
High price
Low price
twoway connected high low tradeday, sort
clwidth(thin thick) msymbol(Oh S)
When graphing multiple variables, you
can specify connect and marker symbol
options to control each line. In this
case, we use a thin line for the high
price and a thick line for the low price.
We also differentiate the two lines by
using different marker symbols, hollow
circles for the high price and squares for
the low price.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
High price
Low price
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