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

Extending Stata graphics via SVG manipulation commands

Author

Listed:
  • Robert Grant

    (BayesCamp)

  • Tim P. Morris

    (MRC Clinical Trials Unit, University College London, UK)

Abstract

Among the many new features in Stata version 14, arguably the most exciting was completely unheralded: Stata graphs could now be exported to SVG (Scalable Vector Graphics) format. SVG is a great option for storing graphical outputs because it is compact but images can be enlarged without becoming blurred or pixelated. It is also relatively human-readable, as the .svg files are plain text XML code. As output by Stata, this is particularly readable. We present three new commands as the start of a larger SVG manipulation package, which amend an existing Stata-generated .svg file to add features that are not available within Stata. Individual objects such as markers or lines can be made semi- transparent, the SVG can be embedded within a web page with some interactivity such as popup information, and a scatterplot can be converted to a hexagonal bin (2-dimensional histogram).

Suggested Citation

  • Robert Grant & Tim P. Morris, 2017. "Extending Stata graphics via SVG manipulation commands," United Kingdom Stata Users' Group Meetings 2017 20, Stata Users Group.
  • Handle: RePEc:boc:usug17:20
    as

    Download full text from publisher

    File URL: http://repec.org/usug2017/grant-uksug17.pptx
    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:usug17:20. 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.