Graphics Reference
In-Depth Information
twoway (scatter propval100 rent700 ownhome urban,
msize(vsmall medium large)
)
Here, we have an overlaid scatterplot
where we graph three variables on the
y
-axis (
propval100
,
rent700
,and
ownhome
) and use the
msize(vsmall
medium large)
option to make the
sizes of these markers very small,
medium, and large, respectively.
Uses allstatesdc.dta & scheme vg s2c
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
% rents $700+/mo
% who own home
twoway (scatter propval100 rent700 ownhome urban,
msize(*.5 *1 *1.5)
)
We can repeat the previous graph but
use relative sizes within the
msize()
option to control the sizes of the
markers, making them, respectively,
half the normal size, regular size, and
half again the normal size.
Uses allstatesdc.dta & scheme vg s2c
20
40
60
80
100
Percent urban 1990
% homes cost $100K+
% rents $700+/mo
% who own home
10.10
Orientation
An
orientationstyle
is used to change the orientation of text, such as a
y
-axis title, an
-axis title, or added text. An
orientationstyle
is similar to an
anglestyle
(see
Styles : Angles
(327)). We can only specify four different orientations using the keywords
horizontal
for
0 degrees,
vertical
for 90 degrees,
rhorizontal
for 180 degrees, and
rvertical
for 270
degrees. See [
G
]
orientationstyle
for more information.
x
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.