Graphics Reference
In-Depth Information
What if you are using a newer version of Stata than version 8.2? It is possible that, in
the future, Stata may evolve to make the behavior of some of these commands change. If
this happens, you can use the version command to ask Stata to run the graph commands
as though they were run under version 8.2. For example, if you were running Stata version 9
but wanted a graph command to run as though you were running Stata 8.2, you could type
. version 8.2 : graph twoway scatter propval100 ownhome
and the command would be executed as if you were running version 8.2.
This topic has a number of associated online resources to complement the topic. Ap-
pendix : Online supplements (382) has more information about these online resources and how
to access them. I strongly suggest that you install the online supplements, which make it
easier to run the examples from the topic. To install the supplemental programs, schemes,
and help files, just type from within Stata
. net from http://www.stata-press.com/data/vgsg
. net install vgsg
For an overview of what you have installed, type whelp vgsg within Stata. Then, with the
vguse command, you can use any dataset from the topic. Likewise, all the custom schemes
used in the topic will be installed into your copy of Stata and can be used to display the
graphs, as described earlier in this section.
1.2
Types of Stata graphs
Stata has a wide variety of graph types. This section introduces the types of graphs
Stata produces and covers twoway plots (including scatterplots, line plots, fit plots, fit plots
with confidence intervals, area plots, bar plots, range plots, and distribution plots), scat-
terplot matrices, bar charts, box plots, dot plots, and pie charts. We will start off with a
section showing the variety of twoway plots that can be created with graph twoway .For
this introduction, we have combined them into six families of related plots: scatterplots and
fit plots, line plots, area plots, bar plots, range plots, and distribution plots. We will start
by illustrating scatterplots and fit plots.
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