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

Re: st: Can someone tell me what is wrong with this legend command?


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: Can someone tell me what is wrong with this legend command?
Date   Fri, 26 Mar 2004 20:34:30 -0600 (CST)

I think this is what you want:

line ged hs year, legend(pos(3) col(1) lab(1  "Males") lab(2
"Females"))

I used my own variable names to make sure it worked, but you get the idea.
In general, you can't use the same option again; only one legend(...) per
graph is allowed.

DVM

On Fri, 26 Mar 2004, Jon Ebeling wrote:

> I tried to do the following command and option; it is straight out of
> the graphics volume, page 379 of the Stata8 volumes. Here is what happened.
>
>
> . line le_m le_f year, legend(pos(3)) legend(col(1)) lab(1  "Males")
> lab(2   "Females"))
> option lab() not allowed
> invalid syntax
> r(198);
>
> If anyone can tell me what i"m donig wrong here, I would appreciate it.
> Jon Ebeling
>
>
>
> *
> *   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/
>

_______________________________________________________________________________
Dimitriy V. Masterov

Work:
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

Home:
1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760


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