Graphics Reference
In-Depth Information
twoway scatter propval100 rent700,
title("This is a title for the graph")
Just as with any Stata command, the
title() option comes after a comma,
and in this case, it contains a quoted
string that becomes the title of the
graph.
Uses allstates.dta & scheme vg s2c
This is a title for the graph
0
10
20
30
40
% rents $700+/mo
twoway scatter propval100 rent700,
title("This is a title for the graph", box )
Starting with Stata 8, options can have
options of their own. Let's put a box
around the title of the graph. We can
use title(, box ) , placing box as an
option within title() . If the default
for the current scheme had included a
box, then we could have used the nobox
option to suppress it.
Uses allstates.dta & scheme vg s2c
This is a title for the graph
0
10
20
30
40
% rents $700+/mo
twoway scatter propval100 rent700,
title("This is a title for the graph", box size(small) )
Let's take the last graph and modify
the title to make it small. We can add
another option to the title() option
by adding the size(small) option.
Here, we see that one of the options is a
keyword ( box ) and that another option
allows us to supply a value
( size(small) ).
Uses allstates.dta & scheme vg s2c
This is a title for the graph
0
10
20
30
40
% rents $700+/mo
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