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