Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, mlwidth(medthick)
If we do not specify a different color for
the line that outlines the marker (e.g.,
via the mlcolor() option), we may not
see any effect in specifying the
mlwidth() option. This is because the
color of the line surrounding the marker
is the same as the fill color, so we
cannot see the effect of modifying the
width of the line surrounding the
marker, as illustrated here.
Uses allstates.dta & scheme vg rose
80
70
60
50
40
20
40
60
80
% born in state of residence
So far, we have focused on controlling the individual elements of markers, the marker
symbol, color, size, fill color, line color, and so forth. There is another way to change the
appearance of a marker, and that is by specifying a marker style. The marker style controls
all these attributes at once, and in some situations, it can be more ecient to use a marker
style to control the elements individually, as we will see in the following examples. The next
examples will use the vg s2m scheme.
twoway scatter ownhome borninstate
The marker styles are named/numbered
p1 to p15 . The markers in this example
are displayed using the p1 style because
we are plotting only one
-variable and
have not specified a marker style.
Uses allstates.dta & scheme vg s2m
y
20
40
60
80
% born in state of residence
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