Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, by(north)
subtitle("State's location", prefix)
subtitle("Based on Region", suffix)
We can even combine the prefix and
suffix option to insert text before and
after the label of the by-group.
Uses allstatesdc.dta & scheme vg brite
State's location
S & W
Based on Region
State's location
North
Based on Region
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("This is a subtitle") )
When used as an option within the
by() option, the subtitle() option
works just like the title() and
caption() options, placing a subtitle
on the overall graph.
Uses allstatesdc.dta & scheme vg brite
This is a subtitle
S & W
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) note("Regular note")
Stata treats the note() option much as
it does the title() , caption() ,and
subtitle() options. Here, we include a
note() option and see that it is shown
beneath both graphs.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
20
40
60
80
Regular note
Regular note
% 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