Graphics Reference
In-Depth Information
twoway scatter ownhome propval100, mcolor(maroon)
You can control the marker color with
the mcolor() option. Here, we make
the markers maroon. See Styles : Colors
(328) for other colors you could choose
and also Options : Markers (235) for
more details.
Uses allstates.dta & scheme vg s2c
0
20
40
60
80
100
% homes cost $100K+
twoway scatter ownhome propval100, msize(vlarge)
You can control the marker size with
the msize() option. Using
msize(vlarge) , we make the markers
very large. Note that we switched to
the vg outc scheme, showing
white-filled markers, which can be
useful when the markers are large. See
Styles : Markersize (340) for other sizes
you could choose and also
Options : Markers (235) for more details.
Uses allstates.dta & scheme vg outc
0
20
40
60
80
100
% homes cost $100K+
twoway scatter ownhome propval100 [aweight=rent700], msize(small)
You can also use a weight variable to
determine the size of the symbols.
Using [aweight=rent700] ,wesizethe
symbols according to the proportion of
rents that exceed 700 dollars per
month, allowing us to graph three
variables at once. We add the
msize(small) option to shrink the size
of all the markers so they do not get
too large. See Options : Markers (235)
for more details.
Uses allstates.dta & scheme vg outc
0
20
40
60
80
100
% homes cost $100K+
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