Stata 10 has an interactive point-and-click editor for your graphs. You
do not need to type anything; you just right-click on the Graph window and
selct Start Graph Editor. You can do that any time, either when
the graph is drawn or when you have graph used it
from disk. You can add text, lines, markers, titles, and annotations,
outside the plot region or inside; you can move axes, titles, legends,
etc.; you can change colors and sizes, number of tick marks, etc.; and you
can even change scatters to lines or bars, or vice versa. See [G]
graph
editor.
New command graph twoway lpoly plots a local
polynomial smooth; see [G]
graph twoway lpoly. New command graph twoway
lpolyci plots a local polynomial smooth along with a confidence
interval; see [G]
graph twoway lpolyci.
Concerning command graph twoway,
graph twoway now allows more than 100
variables to be plotted.
New suboption custom of
axis_label_options allows you to create
custom axis ticks and labels that have a different color, size, tick
length, etc., from the standard ticks and labels on the axis. Such
custom ticks can be used to emphasize points in the scale, such as
important dates, physical constants, or other special values. See the
custom suboption in [G]
axis_label_options.
New suboption norescale of
axis_label_options specifies that the added ticks and labels
be placed directly on the graph without rescaling the axis or
associated plot region for the new values; see [G]
axis_label_options.
New advanced options yoverhangs and
xoverhangs adjust the graph region margins to
prevent long labels on the y or
x axis from extending off
the edges of the graphs; see [G]
advanced_options.
graph twoway pcarrow and graph twoway
pcbarrow may now be drawn on plot regions with log scales or reversed scales;
see [G]
graph
twoway pcarrow.
graph bar and graph dot no
longer require user-provided names when a variable is repeated with more than one
statistic; see [G]
graph bar and [G]
graph dot.
graph export has new options
width(#) and
height(#)
that specify the width and height of the graph when exporting to PNG or
TIFF, thus allowing the resolution to be greater than screen resolution;
see [G]
graph export.
graph twoway area and graph twoway
rarea now allow option cmissing() to control whether
missing values produce breaks in the areas or are ignored; see [G]
graph twoway area and [G]
graph twoway rarea.
Typing help graph option
now displays the help file for the specified option of the
graph command. See [R]
help.
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Privacy policy
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Advertising and performance cookies
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.