Author
Listed:
- Sergiy Radyakin
(The World Bank)
Abstract
Stata provides a fairly extensive set of graphs. However sometimes users need to implement custom graphs, which are not yet available. In some cases it is possible to “tweak” a standard graph so that it results in the desired image; in other cases it is not possible. Stata uses complex system of objects implemented as classes and heavily relies on inheritance, polymorphism and overriding to implement its graphics. While standard class programming is well described in the Stata manuals, the particulars of the design and implementation of the Stata graphics features are not documented by developers and thus are not easily accessible. We will: briefly discuss the overall idea of how Stata graphics works, review a couple of examples of custom graphic commands and their implementation. This part of discussion will be most useful for skilled Stata programmers that want to know what is happening under the hood and, perhaps, optimize their graphic commands to improve performance or add features. After that we will look at the new command -matrixplot-, the sample images rendered by which generated quite a lot of interest in statalist. -matrixplot- can be used to produce contour plots, heatmap-like plots, particularly useful when working with climate data, as well as displaying raster images for digital image processing.
Suggested Citation
Sergiy Radyakin, 2009.
"Implementing custom graphics in Stata,"
DC09 Stata Conference
10, Stata Users Group, revised 05 Sep 2009.
Handle:
RePEc:boc:dcon09:10
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:dcon09:10. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.