Graphics Reference
In-Depth Information
scatter propval100 rent700 ownhome
This scatterplot illustrates the vg outc
scheme. It is based on the s2color
scheme but makes the fill color of the
bars/boxes/markers white, so they
appear hollow. The plot region is a
light blue to contrast with the white fill
color. In this case, this scheme is useful
to help us see number of markers
present where numerous markers are
close or partially overlapping.
Uses allstates.dta & scheme vg outc
40
50
60
70
80
% who own home
% homes cost $100K+
% rents $700+/mo
scatter propval100 rent700 ownhome
This example is similar to the previous
one but illustrates the vg outm scheme,
the monochrome equivalent of the
vg outc scheme. It is based on the
s2mono scheme but makes the fill color
of the bars/boxes/markers white, so
they appear hollow.
Uses allstates.dta & scheme vg outm
40
50
60
70
80
% who own home
% homes cost $100K+
% rents $700+/mo
twoway (scatter ownhome borninstate if stateab=="DC", mlabel(stateab))
(scatter ownhome borninstate), legend(off)
This is an example of the vg samec
scheme, based on s2color , and makes
all of the markers, lines, bars, etc., the
same color, shape, and pattern. Here,
the second scatter command labels
Washington, DC , which normally would
be shown in a different color, but with
this scheme, the marker is the same.
This scheme has a monochrome
equivalent called vg samem that is not
illustrated.
Uses allstates.dta & scheme vg samec
DC
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