EconPapers    
Economics at your fingertips  
 

Speaking Stata: Logarithmic binning and labeling

Nicholas Cox

Stata Journal, 2018, vol. 18, issue 1, 262-286

Abstract: Histograms on logarithmic scale cannot be produced by an option like xscale(log). You need first to transform the variable concerned with a loga- rithm function. That raises small choices: how to select bin start, bin width, and informative axis labels and titles? Problems and solutions are discussed here in detail. In contrast, for logarithmic scales on other graphs, options xscale(log) and yscale(log) may do most of what you want. But there is usually still scope for “nicer” axis labels than are given by default and indeed scope for differing tastes on what “nice” means. This column introduces the niceloglabels command for helping (even automating) label choice. Historical notes and references are sprinkled throughout.

Keywords: niceloglabels; logarithms; axis scales; axis labels; binning; his- tograms; quantile plots; transformations; graphics (search for similar items in EconPapers)
Date: 2018
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj18-1/gr0072/
References: Add references at CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=gr0072 link to article purchase

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:tsj:stataj:v:18:y:2018:i:1:p:262-286

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-29
Handle: RePEc:tsj:stataj:v:18:y:2018:i:1:p:262-286