Graphics Reference
In-Depth Information
twoway (scatter propval100 urban) (scatter rent700 urban)
(lfit propval100 urban) (lfit rent700 urban),
scheme(s2color)
This example uses the
scheme(s2color)
option to create a
graph using the
s2color
scheme. Using
the
scheme()
option, we can manually
select which scheme to use for
displaying the graph we wish to create.
The
s2color
scheme is the default
scheme for Stata graphs.
Uses allstates.dta & scheme s2color
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
% rents $700+/mo
Fitted values
Fitted values
twoway (scatter propval100 urban) (scatter rent700 urban)
(lfit propval100 urban) (lfit rent700 urban),
scheme(s2mono)
The
s2mono
scheme is a
black-and-white version of the
s2color
scheme. In this example, the symbols
differ in gray scale and size, and the
lines differ in their patterns.
Uses allstates.dta & scheme s2mono
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
% rents $700+/mo
Fitted values
Fitted values
twoway (scatter propval100 urban) (scatter rent700 urban)
(lfit propval100 urban) (lfit rent700 urban),
scheme(s2manual)
Here is an example using the
s2manual
scheme, which is very similar to the
s2mono
scheme. One difference is that
the lines of the fit values are the same
pattern (solid) in this graph, but they
have different patterns when we use
s2mono
.
Uses allstates.dta & scheme s2manual
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
% rents $700+/mo
Fitted values
Fitted values
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.