Graphics Reference
In-Depth Information
twoway (scatter propval100 urban) (scatter rent700 urban)
(lfit propval100 urban) (lfit rent700 urban), scheme(sj)
The sj scheme is very similar to the
s2mono scheme. In fact, a comparison
of this graph with an earlier graph that
used the s2mono scheme shows no
visible differences. The sj scheme is
basedonthe s2mono scheme and only
alters xsize() and ysize() . See
Appendix : Customizing schemes (379) for
more information about how to inspect
(and alter) the contents of graph
schemes.
Uses allstates.dta & scheme sj
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(economist)
The economist scheme is quite
different from all the other schemes and
is a very good example of how much
can be controlled with a scheme. Using
this scheme modifies the colors of the
plot area, border, markers, lines, the
position of the
% homes cost $100K+
% rents $700+/mo
Fitted values
Fitted values
100
80
60
-axis, and the legend.
It also removes the line on the
y
40
-axis
and changes the angle of the labels on
the
y
20
-axis.
Uses allstates.dta & scheme economist
y
0
20
40
60
80
100
Percent urban 1990
As these examples have shown, we can change the scheme of a graph by supplying the
scheme() option on a graph command. If we want to use the same scheme over and over,
we can use the set scheme command to set the default scheme. For example, if we typed
. set scheme economist
the default scheme would become economist until we quit Stata. Or, we could type
. set scheme economist, permanently
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