Graphics Reference
In-Depth Information
twoway scatter ownhome borninstate,
by(nsw, hole(1) title("%Own home by" "%born in St." "by region",
pos(11) ring(0) width(65) height(35) justification(center)
alignment(middle)) note(""))
The hole(1) option leaves the first
position empty when creating the
graphs, and the title is placed there
using pos(11) and ring(0) .Weuse
width() and height() to adjust the
size of the textbox and
justification() and alignment() to
center the textbox horizontally and
vertically. The note("") option
suppresses the note in the bottom
corner of the graph.
Uses allstates.dta & scheme vg s2c
North
%Own home by
%born in St.
by region
South
West
20
40
60
80
20
40
60
80
% born in state of residence
twoway (rspike hi low date) (rcap close close date, msize(medsmall)),
tlabel(08jan2001 01feb2001 21feb2001) legend(off)
Before making this high/low/close
graph, we first type tsset date,
daily to tell Stata that date should be
treated as a date in the tlabel()
option. The rcap command uses close
for both the high and the low values,
making the tick line for the closing
price, and the legend(off) option
suppresses the legend. Using the
vg samec scheme makes the spikes and
closes the same color.
Uses spjanfeb2001.dta & scheme
vg samec
08jan2001
01feb2001
21feb2001
Date
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