EconPapers    
Economics at your fingertips  
 

Making interactive online visualizations with stata2leaflet and stata2d3

Robert Grant ()
Additional contact information
Robert Grant: St George's Medical School, University of London

2014 Stata Conference from Stata Users Group

Abstract: The last three years have seen explosive growth in the variety and sophistication of interactive online graphics. These are mostly implemented in the web language JavaScript, with the D3 (Data Driven Documents) library being the most popular and flexible at present. Leaflet is a mapping library also being widely used. R users have some packages that translate their data and specifications into interactive graphics and maps, which write a text file containing the HTML and JavaScript instructions that make up a web page containing the desired visualization. This translation into a web page is easily achieved in Stata, and I will present the -stata2leaflet- command which produces zoomable, clickable online maps. Contemporary interactive graphs benefit from allowing the viewer to filter and select data of interest, which is a second layer of specification implemented in the -stata2d3- commands. -stata2d3- capitalises on the consistency of Stata graph syntax by parsing and translating a standard Stata graph command into a web page. Users can choose to include explanatory comments against each line in the source code, invisible to viewers but helping them to learn HTML and JavaScript and make further refinements.

Date: 2014-08-02
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/bos2014/boston14_grant.pdf (application/pdf)

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:scon14:13

Access Statistics for this paper

More papers in 2014 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:scon14:13