Graphics Reference
In-Depth Information
scatter workers2 faminc, mlabel(stateab)
mlabposition(5)
In this example, we add marker labels
to a scatterplot and use the
mlabposition(5)
(marker label
position) option to place the marker
labels in the 5 o'clock position with
respect to the markers.
Uses allstatesdc.dta & scheme vg s2c
AK
NH
HI
M
N
CT
VT
MD
WI
NE
MA
SD
ND
C
O
U
T
VA
NJ
IA
KS
DE
RI
ME
N
C
W
Y
IN
NV
G
A
IL
ID
SC
CA
MT
N
Y
MO
WA
TN
TX
OR
PA
O
H
MI
OK
AL
KY
AZ
AR
NM
FL
MS
LA
WV
15000
20000
25000
30000
1979 Median Family Inc.
scatter workers2 faminc, mlabel(stateab)
mlabposition(0) msymbol(i)
In this example, we place the markers
in the center position using the
mlabposition(0)
option. We also
make the symbols invisible using the
msymbol(i)
option. Otherwise, the
markers and marker labels would be
atop each other.
Uses allstatesdc.dta & scheme vg s2c
AK
NH
HI
M
N
CT
VT
MD
WI
NE
MA
SD
ND
C
O
UT
VA
NJ
IA
KS
D
E
RI
ME
N
C
WY
IN
NV
G
A
IL
ID
SC
CA
MT
NY
MO
WA
TN
TX
OR
PA
O
H
MI
OK
AL
KY
AZ
AR
NM
FL
MS
LA
WV
15000
20000
25000
30000
1979 Median Family Inc.
10.4
Compass direction
A
compassdirstyle
is much like
clockpos
, but where a
clockpos
has 12 possible outer po-
sitions, like a clock, the
compassdirstyle
has only 9 possible outer positions, like the major
labels on a compass:
north
,
neast
,
east
,
seast
,
south
,
swest
,
west
,
nwest
,and
center
.
These can be abbreviated as
n
,
ne
,
e
,
se
,
s
,
sw
,
w
,
nw
,and
c
. Stata permits us to use
a
clockpos
even when a
compassdirstyle
is called for and makes intuitive translations; for
example,
12
is translated to
north
,or
2
is translated to
neast
. See [
G
]
compassdirstyle
for more information.
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.