Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, mlabel(stateab) mlabpos(7)
mlabcolor(red)
The mlabcolor() (marker label color)
option controls the color of the marker
labels. In this example, we make the
marker labels red. See Styles : Colors
(328) for more details.
Uses allstates3.dta & scheme vg s2c
WV
DE
M S
AL
AR
SC
TN
KY
OK
NC
FL
LA
MD
VA
GA
TX
30
40
50
60
70
80
% born in state of residence
twoway scatter ownhome borninstate, mlabel(stateab) mlabpos(7)
mlabgap(*3)
The mlabgap() (marker label gap)
option controls the gap between the
marker and the marker label. In this
example, we make the gap three times
the size that it would normally. You
can also specify a value less than 1 to
place the marker label closer to the
marker.
Uses allstates3.dta & scheme vg s2c
WV
DE
M S
AL
AR
SC
TN
KY
OK
NC
FL
LA
MD
VA
GA
TX
30
40
50
60
70
80
% born in state of residence
8.3
Connecting points and markers
Stata supports a variety of methods for connecting points using different values for the
connectstyle . These include l to connect with a straight line, L to connect with a straight
line only if the current
-value, J for stairstep, stepstair
for step then stair, and i for invisible connections. For the next few examples, let's switch
to using the spjanfeb2001 data file, keeping just the data for January and February of
2001. These examples of connect styles do not demonstrate how you would normally use
these styles but illustrate the different ways you can connect points. See [ G ] connectstyle
for more information. For this section, we will use the vg blue scheme.
x
-value is greater than the prior
x
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