Graphics Reference
In-Depth Information
twoway (line close tradeday, clwidth(vthick) sort)
(lfit close tradeday, clwidth(thick) )
(lowess close tradeday, bwidth(.5) clwidth(thin) )
Now, we plot the same three lines but
this time differentiate them by line
thickness using the clwidth() (connect
line width) option.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
Closing price
Fitted values
lowess close tradeday
twoway (line close tradeday, clwidth(*4) sort)
(lfit close tradeday, clwidth(*2) )
(lowess close tradeday, bwidth(.5) clwidth(*.5) )
We could create a similar graph using
the clwidth() option and specify the
widths as relative sizes, making the line
four times as wide for the line plot,
two times as wide for the lfit
command, and half as wide for the line
for the lowess command.
Uses spjanfeb2001.dta & scheme vg s2c
0
10
20
30
40
Trading day number
Closing price
Fitted values
lowess close tradeday
10.8
Margins
We can specify the size of a margin in three different ways. We can use a word that rep-
resents a predefined margin. These include zero , vtiny , tiny , vsmall , small , medsmall ,
medium , medlarge , large ,and vlarge . They also include top bottom to indicate a medium
margin at the top and bottom, and sides to indicate a medium margin at the left and right.
A second method is to give four numbers giving the margins at the left, right, top, and bot-
tom. A third method is to use expressions such as b=5 to modify one or more of the margins.
These are illustrated below. See [ G ] marginstyle for more information.
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