Graphics Reference
In-Depth Information
twoway rbar high low tradeday,
bcolor(sienna)
The
bcolor()
(bar color) option sets
the color of the bar and the outline,
making the color sienna.
Uses spjanfeb2001.dta & scheme
vg brite
0
10
20
30
40
Trading day number
twoway rbar high low tradeday,
bfcolor(sienna)
blcolor(cranberry) blwidth(thick)
With the
bfcolor()
(bar fill color)
option, we set the fill color of the bar to
be sienna and then use the
blcolor()
(bar line color) option to set the color
of the outline to be cranberry. We also
use the
blwidth()
(bar line width)
option to make the lines surrounding
the bars thick.
Uses spjanfeb2001.dta & scheme
vg brite
0
10
20
30
40
Trading day number
2.8
Distribution plots
This section describes the use of
twoway histogram
and
twoway kdensity
for showing
the distribution of a single variable. In addition, this section also shows the use of
twoway
function
for showing the relationship between
using a function that you specify.
See [
G
]
graph twoway histogram
,[
G
]
graph twoway kdensity
, and [
G
]
graph twoway
function
for more information. We will start by showing the
twoway histogram
command
and consider options that allow you to control such things as the number of bins, the width
of the bins, and the starting point for the bins. Then, we will show options that control the
scaling of the
x
and
y
y
-axis. The next few graphs use the
vg past
scheme.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.