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/