[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Tempvars with ylabel
-regaxis- did the trick.
>>> email@example.com 6/8/2004 14:32:54 >>>
At 19:35 08/06/2004, Doug A. Simmons wrote:
>Is it possible to use tempvars (or some other Stata variable) to
>values with the -ylabel- command? I have tried
>but it gives me the error
>"invalid label specifier, : __000000:".
>It appears to be evaluating to the macro name, but not the stored
>value. I have tried using compound quotes, but get similar results.
>I am attempting to build a .do file that will automate the graphing
>data that varies such that `Mean' could be different at each run of
>file. I use -graph twoway line `Mean'- to generate a reference line
>my graph and it works as expected. It just doesn't seem quite right
>me that I can use the temporary variable to draw the graph, but not
>Thank you for your assistance.
Doug might like to use my -regaxis- package, downloadable from SSC,
inputs one or more variables and/or values which must be in the axis
and creates a set of axis labels as output in a macro. The package
2 programs, -regaxis- for regular linear axes and -logaxis- for regular
logarithmic axes. In Stata, type
ssc describe regaxis
to find out more.
I hope this helps.
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Opinions expressed are those of the author, not the institution.
* For searches and help try: