Graphics Reference
In-Depth Information
Because legends work the same way with different types of Stata graph commands, we
can save pages by describing legends in detail in one place: Options : Legend (287). However,
it is useful to see examples of legends for each type of graph that uses them. Each chapter,
therefore, provides a brief section describing legends for each type of graph discussed in
that chapter. Likewise, most options are described in detail in Options (235) with a brief
section in every chapter discussing how each option works in specific types of graphs. As
we saw in the case of legends, some options are not appropriate for some types of graphs,
so those options will not be discussed with the commands that do not support them.
While an option like legend() can be used with many, but not all, kinds of Stata graph
commands, other kinds of options can be used with almost every kind of Stata graph.
These are called Standard Options . To help you differentiate these kinds of options, they
are discussed in their own chapter, Standard options (313). Since these options can be used
with most types of graph commands, they are generally not discussed in the chapters about
the different types of graphs, except when their usage interacts with the options illustrated.
For example, subtitle() is a Standard Option , but its behavior takes on a special meaning
when used with the legend() option, so the subtitle() option is discussed in the context of
legends. Consistent with what we have seen before, the syntax of Standard Options follows
the same kinds of rules we have illustrated, and their usage and behavior are uniform across
the many types of Stata graph commands.
To recap, this section was not about any particular options, but about some of the rules
for using these options and how they behave. Some options permit options. In some cases,
you may want to specify only options. Some options allow you to include one or more
options, but no comma is required. When you overlay multiple graphs using twoway ,you
may have options that go along with each graph, as well as overall options that appear at
the end of the command. Finally, the syntax of a certain option is the same across the
different graph commands that use the options, but not all options are useful for all kinds
of graph commands.
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