Agriculture Reference
In-Depth Information
9
P reParinG G raPHS
Graphing in Stata
One of Stata's strengths is its capability of generating publication-
quality graphs. These graphs can be easily exported in a number of
formats that can be incorporated into other files or saved as stand-
alone output. It is beyond the scope of this text to cover all of the
graphing capabilities of Stata, so I will concentrate on a few graph
types and the editing features available.
There is a Graphics menu available from which graphs can be con-
structed. Several of the graphs available in Stata are listed as separate
items under this menu. These graphs are some of the most common
types as well as several that are available for diagnostic purposes.
Diagnostics of commands like regress are often more easily seen
and understood when viewed graphically. In addition, several graphs
are available in more than one location. For example, under the
Graphics menu, the Distributional graphs submenu lists several diag-
nostic graphs, which are also available under the Distributional plots
and tests, which is under the Summaries tables and tests submenu
under the Statistics menu.
All the graphing commands can be entered in the command win-
dow beginning with the command graph . For example, open the
dataset Large Onion Dataset 2001-02.dta. This is a dataset of an
onion variety trial conducted in the winter of 2001-2002 with 31
varieties. Enter the command and see the results:
graph bar (mean) yield, over( variety,
label(angle(vertical)))
It may be easier, particularly as you begin using graphs, to select
from the menus and fill in the various dialog boxes. This may be
167
Search WWH ::




Custom Search