Graphics Reference
In-Depth Information
twoway scatter ownhome propval100 borninstate, msymbol(.
Sh)
Another strategy for controlling the
marker symbols is choosing or creating
a scheme. The vg samem scheme makes
all markers the same size, shape, color,
etc., allowing you to customize them all
from a common base. Here, we use the
vg samem scheme, making all markers
solid, dark gray circles, but use the
msymbol(. Sh) option to make the
second symbol hollow squares.
Uses allstates.dta & scheme vg samem
20
40
60
80
% born in state of residence
% who own home
% homes cost $100K+
twoway scatter ownhome propval100 borninstate
Say that you wanted the markers to be
displayed as outlines filled with white.
Rather than specifying the mfcolor()
option, you could use the vg outm
scheme, as shown here. Even if you
overlaid multiple commands, using this
scheme would display the markers, by
default, as white-filled outlines.
Uses allstates.dta & scheme vg outm
20
40
60
80
% born in state of residence
% who own home
% homes cost $100K+
8.2
Creating and controlling marker labels
This section looks at the details of using marker labels. Marker labels can be used to
identify the markers with graph twoway but also can be used with other types of graphs,
such as graph matrix and graph box , affecting the outside values. You can even use
marker labels in lieu of markers. For more information, see [ G ] marker label options .
For this section, we will use the vg s2c scheme and the allstates3 file, which keeps the
states that are in the South, i.e., if region is equal to 3.
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