Comment from the Stata technical group
A Visual Guide to Stata Graphics gives you a detailed guide to Stata's
graphics capabilities in an easy-to-use format. From beginning to end, author
Michael Mitchell demonstrates through step-by-step examples the most efficient
methods to create even the most complicated graphs. It will be the first book
you pick up when you want to create a specific type of graph using Stata.
Virtually every page contains full-color examples of Stata graphs, with most
pages showing three graphs. You will probably find the kind of graph you need
by simply thumbing through the pages. Along with each graph is the command
that produced it, a brief description, and the name of its associated files.
These files can be downloaded from the Stata web site.
In the right margin is a "Visual Table of contents" to help you quickly
navigate to a particular section for immediate results and obtain in-depth
information to take your graphics skills to the next level.
The first chapter provides an excellent introduction to Stata graphics and
provides tips for using the book effectively. Each available type of graph is
discussed in its own chapter: twoway graphs, scatterplot matrix graphs, bar
graphs, box plots, dot plots, and pie graphs. The most commonly used options
are then discussed, followed by a chapter discussing options that are
available to all graphs. The final chapter discusses options that change the
style of graph elements, such as color, line pattern, and text size. The
appendix gives an overview of several topics, such as statistical graph
commands, saving and combining graphs, common mistakes, and schemes.
With cross-references to the Stata Graphics Reference Manual, A
Visual Guide to Stata Graphics will help you use Stata's documentation to
take full advantage of Stata's powerful graphics capabilities.
Table of contents
Dedication
Acknowledgments
Preface (pdf)
1 Introduction (pdf)
- 1.1 Using this book
- 1.2 Types of Stata graphs
- 1.3 Schemes
- 1.4 Options
- 1.5 Building graphs
2 Twoway graphs
- 2.1 Scatterplots
- 2.2 Regression fits and splines
- 2.3 Regression confidence interval (CI) fits
- 2.4 Line plots
- 2.5 Area plots
- 2.6 Bar plots
- 2.7 Range plots
- 2.8 Distribution plots
- 2.9 Options
- 2.10 Overlaying plots
3 Scatterplot matrix graphs
- 3.1 Marker options
- 3.2 Controlling axes
- 3.3 Matrix options
- 3.4 Graphing by groups
4 Bar graphs
- 4.1 Y-variables
- 4.2 Graphing bars over groups
- 4.3 Options for groups, over options
- 4.4 Controlling the categorical axis
- 4.5 Controlling legends
- 4.6 Controlling the y-axis
- 4.7 Changing the look of bars, lookofbar options
- 4.8 Graphing by groups
5 Box plots
- 5.1 Specifying variables and groups, yvars and over
- 5.2 Options for groups, over options
- 5.3 Controlling the categorical axis
- 5.4 Controlling legends
- 5.5 Controlling the y-axis
- 5.6 Changing the look of boxes, boxlook options
- 5.7 Graphing by groups
6 Dot plots
- 6.1 Specifying variables and groups, yvars and over
- 6.2 Options for groups, over options
- 6.3 Controlling the categorical axis
- 6.4 Controlling legends
- 6.5 Controlling the y-axis
- 6.6 Changing the look of dot rulers, dotlook options
- 6.7 Graphing by groups
7 Pie graphs
- 7.1 Types of pie graphs
- 7.2 Sorting pie slices
- 7.3 Changing the look of pie slices, colors, and exploding
- 7.4 Slice labels
- 7.5 Controlling legends
- 7.6 Graphing by groups
8 Options available for most graphs
- 8.1 Changing the look of markers
- 8.2 Creating and controlling marker labels
- 8.3 Connecting points and markers
- 8.4 Setting and controlling axis titles
- 8.5 Setting and controlling axis labels
- 8.6 Controlling axis scales
- 8.7 Selecting an axis
- 8.8 Graphing by groups
- 8.9 Controlling legends
- 8.10 Adding text to markers and positions
- 8.11 More options for text and textboxes
9 Standard options available for all graphs
- 9.1 Creating and controlling titles
- 9.2 Using schemes to control the look of graphs
- 9.3 Sizing graphs and their elements
- 9.4 Changing the look of graph regions
10 Styles for changing the look of graphs
- 10.1 Angles
- 10.2 Colors
- 10.3 Clock position
- 10.4 Compass direction
- 10.5 Connecting points
- 10.6 Line patterns
- 10.7 Line width
- 10.8 Margins
- 10.9 Marker size
- 10.10 Orientation
- 10.11 Marker symbols
- 10.12 Text size
11 Appendix
- 11.1 Overview of statistical graph commands, stat graphs
- 11.2 Common options for statistical graphs, stat graph options
- 11.3 Saving and combining graphs, save/redisplay/combine
- 11.4 Putting it all together, more examples
- 11.5 Common mistakes
- 11.6 Customizing schemes
- 11.7 Online supplements
Subject index (pdf)