Graphics Reference
In-Depth Information
Stata also allows us to control the color of the markers. We can control the overall color
of the marker, create a solid color, or make the inner part of the marker one color (called a
fill color) and the outline of the marker a different color. We can also vary the thickness of
the outline of the marker. These next examples will use the vg rose scheme.
twoway scatter ownhome borninstate, mcolor(navy)
The mcolor() (marker color) option
can be used to control the color of the
markers. Here, we make the markers
navy blue using the mcolor(navy)
option. See Styles : Colors (328) for more
information about specifying colors
Uses allstates.dta & scheme vg rose
80
70
60
50
40
20
40
60
80
% born in state of residence
twoway scatter ownhome borninstate, mfcolor(ltblue) mlcolor(navy)
We can separately control the fill color
(inside color) and outline color with the
mfcolor() (marker fill color) and
mlcolor() (marker line color) options,
respectively. Here, we make the fill
color light blue by specifying
mfcolor(ltblue) and the line color
navy by specifying mlcolor(navy) .
Uses allstates.dta & scheme vg rose
80
70
60
50
40
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