Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, mlabel(stateab) mlabpos(center)
One last marker symbol is i for
invisible, allowing us to hide the marker
symbol. In this example, we use the
mlabel(stateab) (marker label)
option to display a marker label with
the state abbreviation for each
observation and the mlabpos(center)
(marker label position) option to center
the marker label. However, the marker
symbol (the circle) and the marker
label (the abbreviation) are right on
top of each other.
Uses allstates.dta & scheme vg s2c
MN
MS
ME
W V
WI
MI
P A
DE
IA
VT
VA
AL
N H
IN
ID
UT
A R
KS
SC SD
OK
MO
K Y
LA
WY
TN
NC N D
NE
OH
N M
C T
IL
FL
NJ
MT
MD
AZ
GA
CO
O R
WA
TX
MA
RI
NY
NV
CA
AK
HI
DC
20
40
60
80
% born in state of residence
twoway scatter ownhome borninstate, mlabel(stateab) mlabpos(center)
msymbol(i)
If we use msymbol(i) to make the
marker symbol invisible, the marker
label (the state abbreviation) can be
displayed without being obscured by
the marker symbol. See Styles : Symbols
(342) for more information about
symbols.
Uses allstates.dta & scheme vg s2c
MN
MS
ME
W V
WI
MI
P A
DE
IA
VT
VA
AL
N H
IN
ID
UT
A R
KS
SC SD
OK
MO
K Y
LA
WY
TN
NC N D
NE
OH
N M
C T
IL
FL
NJ
MT
MD
AZ
GA
CO
O R
WA
TX
MA
RI
NY
NV
CA
AK
HI
DC
20
40
60
80
% born in state of residence
So far, we have seen that the msymbol() option can be used to control the marker sym-
bol and, to a certain extent, can be used to control the marker size (e.g., using O yields
large circles, and using o yields small circles). As the following examples show, the msize()
option can be used to exert more flexible control over the size of the markers. The following
examples will use the vg s1m scheme.
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