IDEAS home Printed from https://ideas.repec.org/p/boc/usug25/17.html
   My bibliography  Save this paper

Five ways to get better at using twoway: Tips and tricks for fully customizing Stata figures

Author

Listed:
  • Brian Fitzpatrick

    (Gibson Consulting)

Abstract

In this presentation, I provide Stata users of intermediate skill with a brief overview of five discrete skills that are crucial to learn to produce fully customizable figures with relative ease and consistency. The tips are as follows: 1. Feel free to try out custom graph wrappers and commands; but when in doubt, collapse to a dataset with one case per data point you want to visualize and use twoway twoway twoway twoway. 2. The margins margins margins margins command has an option called saving saving saving saving. Use it and tip #1 to customize your coefficient plots. 3. Use loops and macros to automate your axis labels. 4. Create separate variables in string format to fully customize marker labels. 5. When you must get fancy, do not forget to use loops and good old algebra. This presentation does not introduce any new commands or tools but rather introduces techniques users can use to get the most out of commonly used Stata commands. The presentation will include examples of figures as well as the code used to create them, and all code will be made available to conference participants.

Suggested Citation

  • Brian Fitzpatrick, 2025. "Five ways to get better at using twoway: Tips and tricks for fully customizing Stata figures," 2025 Stata Conference 17, Stata Users Group.
  • Handle: RePEc:boc:usug25:17
    as

    Download full text from publisher

    File URL: http://repec.org/usug2025/US25_Fitzpatrick.zip
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    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:usug25:17. 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.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.