Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Formaatin the labels of the histogram-bars ?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Formaatin the labels of the histogram-bars ?
Date   Mon, 1 Dec 2003 17:14:34 -0000

This is very much worth knowing. 

What chain of -help- links leads to this answer? 
If none, please make one possible. 

Nick 
n.j.cox@durham.ac.uk 

Jeff Pitblado, StataCorp LP
> 
> Ernest Berkhout <ernestb@seo.fee.uva.nl> asks how to 
> control the format of the
> labels generated by the -addlabels- option of -histogram-:
> 
> > is there a possibility to format the labels that can be 
> stuck on the bars 
> > of a histogram, just as it can be done with a bar-graph?
> > 

... 

> Use the -yvarformat()- option from within the 
> -addlabopts()- option.  For
> example:
> 
> 	. sysuse auto
> 	. histogram mpg, addlabopts(yvarformat(%4.2f))
> 
> results in labels with 2 decimal digits for the labels.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index