Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate,
by(north, total) l1title("left title") b1title("bottom title")
Including the l1title() option adds a
title to the left (on the
S & W
North
y
-axis) of each
of the graphs. Likewise, the b1title()
option adds a title to the bottom (on
the
-axis) of each of the graphs.
Uses allstatesdc.dta & scheme vg brite
x
20
40
60
80
bottom title
bottom title
Total
20
40
60
80
bottom title
% born in state of residence
Graphs by Region North or Not
twoway scatter (borninstate propval100 ownhome), by(nsw)
legend(label(1 "Born in state") label(2 "% > 100K"))
Here, we use the legend() option to
change the labels associated with the
first two keys. These options modify the
contents of the legend, so they should
appear outside of the by() option.
Uses allstatesdc.dta & scheme vg brite
North
South
50
60
70
80
West
50
60
70
80
% who own home
Born in state
% > 100K
Graphs by Region North, South, or West
twoway scatter (borninstate propval100 ownhome),
by(nsw, legend(position(12)) )
In this graph, we use the position()
option to modify the position of the
legend. Such options that modify the
position of the legend must be placed as
an option within the by() option.
Uses allstatesdc.dta & scheme vg brite
% born in state of residence
% homes cost $100K+
North
South
50
60
70
80
West
50
60
70
80
% who own home
Graphs by Region North, South, or West
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