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

st: RE: Variable label as title in histogram


From   Daniel Müller <d.mueller@agr.uni-goettingen.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Variable label as title in histogram
Date   Thu, 27 Mar 2003 11:07:53 +0100

David Schwappach asks:

> I'm preparing a report on survey data. Survey questions are 
> saved as variable labels. My question is whether there is an 
> option to use the variable labels as title in the histogram 
> command? I know that I can do this manually via copy/paste, 
> but a command to adress the label automatically would be very 
> appreciated.

. local varlab : variable label varname
. twoway (histogram varname, ti(`varlab'))

Daniel


*
*   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