Graphics Reference
In-Depth Information
twoway (lfitci ownhome pcturban80, bcolor(stone) )
(scatter ownhome pcturban80)
We use the bcolor(stone) option to
change the color of the area and outline
of the confidence interval. You can use
the options illustrated with twoway
rarea to control the display of the area
encompassing the confidence interval,
namely, bcolor() , bfcolor() ,
blcolor() , blwidth() ,and
blpattern() . See Twoway : Range (64)
and [ G ] graph twoway rarea for more
details.
Uses allstatesdc.dta & scheme vg brite
20
40
60
80
100
Percent urban
95% CI
Fitted values
% who own home
twoway (lfitci ownhome pcturban80, ciplot(rline) )
(scatter ownhome pcturban80)
The ciplot() option can be used to
select a different command for
displaying the confidence interval. The
default command is twoway rarea and
can be selected via the ciplot(rarea)
option. Here, we use the
ciplot(rline) option, which displays
the confidence interval as two lines
without any filled area. The valid
options include rarea , rbar , rspike ,
rcap , rcapsym , rscatter , rline ,and
rconnected .
Uses allstatesdc.dta & scheme vg brite
20
40
60
80
100
Percent urban
95% CI
Fitted values
% who own home
twoway
(lfitci ownhome pcturban80, ciplot(rline) blcolor(green) blpattern(dash)
blwidth(thick) ) (scatter ownhome pcturban80)
By choosing the rline command for
displaying the confidence interval, we
can then use options appropriate for
the twoway rline command. Here, we
make the line green, dashed, and thick.
See Styles : Colors (328),
Styles : Linepatterns (336), and
Styles : Linewidth (337) for more details
about colors, line patterns, and line
widths.
Uses allstatesdc.dta & scheme vg brite
20
40
60
80
100
Percent urban
95% CI
Fitted values
% 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