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

st: RE: format of y axis labels on hist


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: format of y axis labels on hist
Date   Fri, 6 Jun 2003 11:29:05 +0100

Chris Wallace
> 
> With stata 8, when I graph a frequency histogram using
> 
> -histogram k, discrete frequency-
> or
> -histogram k, discrete frequency ylab(10000 20000 30000 40000)-
> 
> the frequency axis is labelled 1.0e+04 ... 4.0e+0.4.  I 
> would rather it was labelled 10000 ... 40000.  Is this 
> possible?  I checked the documentation for -format-, but 
> cannot see how to apply this to graphs.

Try 

histogram k, discrete frequency 
ylab(10000 "10000" 20000 "20000" 30000 "30000" 40000 "40000")

In addition, it is a matter of taste, but you might consider also 

ylab(10000 "10000" 20000 "20000" 30000 "30000" 40000 "40000", ang(h))

A wild guess is that the 

, ang(h) 

alone might achieve what you want. 

Nick 
[email protected] 
*
*   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