Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, by(north)
subtitle("This is a subtitle")
Stata treats the subtitle() option
differently than the title() and
caption() options. Here, we include a
subtitle() option, and we see that it
has replaced the title above each graph
that represented the names of the
by-group.
Uses allstatesdc.dta & scheme vg brite
This is a subtitle
This is a subtitle
20
40
60
80
20
40
60
80
% born in state of residence
Graphs by Region North or Not
twoway scatter ownhome borninstate, by(north)
subtitle("Region of state", prefix)
We can use the subtitle() option to
add more labeling to the by-group
names. Here, we use the prefix option
to insert text that appears in the
subtitle before the name of the
by-group.
Uses allstatesdc.dta & scheme vg brite
Region of state
S & W
Region of state
North
20
40
60
80
20
40
60
80
% born in state of residence
Graphs by Region North or Not
twoway scatter ownhome borninstate, by(north)
subtitle("Region of state", suffix )
We can use the suffix option to insert
text that appears in the subtitle after
the name of the by-group.
Uses allstatesdc.dta & scheme vg brite
S & W
Region of state
North
Region of state
20
40
60
80
20
40
60
80
% born in state of residence
Graphs by Region North or Not
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