Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate
In this scatterplot, one point appears to
be an outlier from the rest, but since it
is not labeled, we cannot tell from
which state it originates.
Uses allstatesn.dta & scheme vg teal
80
70
60
50
40
40
50
60
70
80
% born in state of residence
scatter ownhome borninstate, mlabel(stateab)
We can use the mlabel(stateab) to
l abel all points, which helps us see that
the outlying point comes from
Washington, DC . However, this plot is
rather cluttered by all the labels.
Uses allstatesn.dta & scheme vg teal
80
MN
ME
MI
PA
I A
VT
NH
I N
WI
KS
MO NE
N D
OH
C T
IL
SD
70
NJ
MA
RI
NY
60
50
DC
40
40
50
60
70
80
% born in state of residence
twoway (scatter ownhome borninstate)
(scatter ownhome borninstate if stateab == "DC", mlabel(stateab))
We could repeat a second scatterplot
just to label DC , but this is a bit
cumbersome.
Uses allstatesn.dta & scheme vg teal
80
70
60
50
DC
40
40
50
60
70
80
% born in state of residence
% who own home
% who own home
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