Graphics Reference
In-Depth Information
8
Options available for most graphs
This chapter discusses options that are used in many, but not all, kinds of graphs in
Stata, as compared with the Standard options (313) chapter, which covers options that are
standard in all Stata graphs. This chapter goes into greater detail about how to use these
options to customize your graphs. As you can see from the Visual Table of Contents at
the right, this chapter covers markers, connecting, axis titles, labels, scales, selection, using
the by() option, legends, added text, and textboxes. For further details, the examples will
frequently refer to sections of Styles (327) and to [ G ] graph .
8.1
Changing the look of markers
This section looks at options that we can use for controlling markers. While the ex-
amples in this section focus on twoway scatter , these options apply to any graph where
you have markers and can control them. This section will show how to change the marker
symbol, marker size, and color (both fill and outline color). For more information, see
[ G ] marker options . We will start this section using the vg s2c scheme.
twoway scatter ownhome borninstate
Consider this scatterplot showing the
relationship between the percentage of
people in a state who own their home
and the percentage of people born in
their state of residence. The markers
used in this plot are filled circles.
Uses allstates.dta & scheme vg s2c
20
40
60
80
% born in state of residence
235
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