Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate, by(north, title("By title") )
title("Regular title")
This example should help you to
understand how these two types of
titles work. When the title() is used
overall, it applies to all graphs that are
created because it is repeated via the
by() option. The by(title()) is
applied after all smaller graphs are
created, providing an overall title for
the graph.
Uses allstatesdc.dta & scheme vg brite
By title
Regular title
Regular title
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)
caption("Regular caption")
Stata treats the caption() option the
same way that it treats titles. Here, we
include an overall caption, which is
displayed with each graph.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
20
40
60
80
Regular caption
Regular caption
% born in state of residence
Graphs by Region North or Not
twoway scatter ownhome borninstate, by(north, caption("By caption") )
When we include the caption() inside
the by() option, it is displayed as a
caption for the full graph.
Uses allstatesdc.dta & scheme vg brite
S & W
North
20
40
60
80
20
40
60
80
% born in state of residence
Graphs by Region North or Not
By caption
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