Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate,
by(north, total) subtitle(, pos(5) ring(0) nobexpand )
We can place the name of the by-group
in the bottom right corner of each
graph using the subtitle() option.
The options pos(5) and ring(0) move
the subtitle to the 5 o'clock position
and inside the plot region. The
nobexpand (no box expand) option
prevents the by-group name from
expanding to consume the entire plot
region.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
Total
20
40
60
80
% born in state of residence
Graphs by Region North or Not
twoway scatter ownhome borninstate,
by(north, total title("My title", ring(0) position(5) ))
We can also use the ring() and pos()
options with title() , note() ,and
caption() to alter their placement.
Here, we use position(5) to put the
title in the bottom right corner and
ring(0) to locate it inside the plot
region.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
Total
My title
20
40
60
80
% born in state of residence
Graphs by Region North or Not
twoway scatter ownhome borninstate,
by(north, total title("My title", position(5) ))
The previous graph is repeated with
the position(5) option but not the
ring(0) option to illustrate the impact
of ring(0) . Without ring(0) , the title
is placed outside the plot region.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
Total
20
40
60
80
% born in state of residence
Graphs by Region North or Not
My title
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