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

st: legend in -twoway line-


From   "Sascha O. Becker" <[email protected]>
To   [email protected]
Subject   st: legend in -twoway line-
Date   Tue, 02 Mar 2004 14:19:42 +0100

Dear Nick,

my idea was to attach the labels in -legend- only (I did not attach value labels to the variable values themselves), but I should probably attach value labels to the variable first and then get the correct legends right away. That does work.

Thanks again, Sascha


+++++++

I am not clear where you want these legend
labels to come from. -separate- picks up
the value labels of each variable;
don't they end in the legend?

Nick
n.j.cox@d...

> -----Original Message-----
> From: owner-statalist@h...
> [mailto:owner-statalist@h...]On Behalf Of Sascha O.
> Becker
> Sent: 02 March 2004 12:30
> To: statalist@h...
> Subject: st: legend in -twoway line-
>
>
> Dear Nick,
>
> thanks for your very helpful suggestion on -separate- and -labutil- !
>
> One thing I was not able to resolve, though, is how to get the legend
> labels "automated". The way I understand the -legend- option
> in -twoway
> line- is that the -legend- option only allows to change
> labels one by one, so it does not seem to be possible to attach
> pre-defined labels as if it were value labels.
>
> One has to specify the legend with each single label in brackets
> (e.g. legend(label (1 "Employees") (2 "Self-Employed") )
> which does not seem to lend itself to sdavemthing like
>
> legend(mylabel)
>
> where mylabel is a "standard" value label
>
> Is there a workaround for this as well?
>
> Cheers, Sascha

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