Graphics Reference
In-Depth Information
twoway kdensity ttl exp, clwidth(thick) clpattern(dash)
We can use options such as
clcolor()
,
clwidth()
,and
clpattern()
to alter
the characteristics of the line. Here, we
use the
clwidth()
and
clpattern()
options to make the line thick and
dashed. See
Styles : Linewidth
(337),
Styles : Linepatterns
(336), and
Styles : Colors
(328) for more details.
Uses nlsw.dta & scheme vg s2c
0
10
20
30
x
twoway
function
y=normden(x),
range(-4 4)
We conclude by showing how you can
use
twoway
function
to graph an
arbitrary function. We graph the
function
y=normden(x)
to show a
normal curve. We add the
range(-4
4)
to specify that we want the
x
-values
to range from
4 to 4. Otherwise, the
graph would show the
−
x
-values ranging
from 0 to 1.
Uses nlsw.dta & scheme vg s2c
−4
−2
0
2
4
x
2.9
Options
This section discusses the use of options with
twoway
, showing the types of options you
can use. For more details, see
Options
(235). This section uses the
vg outm
scheme for
displaying the graphs.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.