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" <[email protected]>
To   <[email protected]>
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 
[email protected] 

Jeff Pitblado, StataCorp LP
> 
> Ernest Berkhout <[email protected]> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index