Extending Stata graphics via SVG manipulation commands
Robert Grant () and
Tim P. Morris ()
Additional contact information
Robert Grant: BayesCamp
Tim P. Morris: MRC Clinical Trials Unit, University College London, UK
United Kingdom Stata Users' Group Meetings 2017 from Stata Users Group
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).
Date: 2017-09-14
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2017/grant-uksug17.pptx (application/x-ms-powerpoint)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:usug17:20
Access Statistics for this paper
More papers in United Kingdom Stata Users' Group Meetings 2017 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().