Graphics Reference
In-Depth Information
twoway scatter propval100 urban,
msymbol(Oh)
||
lfit propval100 urban,
clwidth(thick)
||
qfit propval100 urban,
clwidth(medium)
This example shows how to use the
||
notation with options for each of the
commands.
Uses allstates.dta & scheme vg s2m
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
Fitted values
Fitted values
twoway scatter propval100 urban, msymbol(Oh) ||
lfit propval100 urban, clwidth(thick) ||
qfit propval100 urban, clwidth(medium) ||,
legend(label(2 Linear Fit) label(3 Quad Fit))
This is another example using the
||
notation, in this case illustrating how to
have options on each of the commands,
along with the
legend()
as an overall
option.
Uses allstates.dta & scheme vg s2m
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
Linear Fit
Quad Fit
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.