Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, mstyle(p1)
Here, we explicitly select the default
marker style using the mstyle(p1)
(marker style) option, and the markers
look identical to the previous graph.
Uses allstates.dta & scheme vg s2m
20
40
60
80
% born in state of residence
twoway scatter ownhome borninstate, mstyle(p2)
Here, we use mstyle(p2) to explicitly
select the p2 style for displaying the
markers, and now the markers are
different in size, shape, and color. The
markers are now larger diamonds that
are a middle-level gray color.
Uses allstates.dta & scheme vg s2m
20
40
60
80
% born in state of residence
twoway scatter ownhome propval100 borninstate
Now, if we plot two variables, notice
how the first variable is plotted using
the p1 style and the second variable is
plotted using the p2 style. We would
have gotten the same result if we had
specified the option mstyle(p1 p2) .
Uses allstates.dta & scheme vg s2m
20
40
60
80
% born in state of residence
% who own home
% 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