Graphics Reference
In-Depth Information
scatter propval100 ownhome, title("My title", position(1) ring(0) )
As we saw in the last example, we can
use the position() option to control
the placement of the title, but this
option does not control the distance
between the title and center of the plot
region. That is controlled by the
ring() option. ring(0) means that
the item is inside the plot region, and
higher values for ring() place the item
farther away from the plot region.
Imagine concentric rings around the
plot area with higher values
corresponding to the rings that are
farther from the center.
Uses allstates.dta & scheme vg s1m
My title
40
50
60
70
80
% who own home
scatter propval100 ownhome, title("This is my" "title",
position(11) box )
Because titles, subtitles, notes, and
captions are considered textboxes, you
can use the options associated with
textboxes to customize their display.
Here, we place a box around the title
using the box option. We also use the
position(11) option to place the title
in the 11 o'clock position.
Uses allstates.dta & scheme vg s1m
This is my
t itle
40
50
60
70
80
% who own home
scatter propval100 ownhome, title("This is my" "title",
position(11) box span )
Here, we add the span option, so the
title spans the width of the graph,
positioning the title flush left at the 11
o'clock position. Note that now the
title partly obscures the 100 labeling
the
This is my
title
-axis.
Uses allstates.dta & scheme vg s1m
y
40
50
60
70
80
% who own home
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