The key() options of the -graph- command give you some limited ability
to create a legend for the graph.
There are various user-written programs that let you add text to a
graph, which is probably more what you want. My -textgph- is one
example, I don't think I've submitted it to SSC, but I am doing so now,
so it will be available shortly.
-textgph- basically creates a twoway graph, and includes an option that
lets you specify strings of text you would like on the graph; the
location for the strings is specified in terms of the x and y
coordinates of the data in the graph.
--Nick Winter
-----------------------------------------------------------
Nicholas Winter, Ph.D. P 202.939.5343
Policy Studies Associates F 202.939.5732
1718 Connecticut Avenue, NW [email protected]
Washington, DC 20009-1148 www.policystudies.com
-----------------------------------------------------------
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Monday, November 25, 2002 11:17 AM
> To: [email protected]
> Subject: st: labeling graph object
>
>
> Hi,
>
> I want to label objects in a graph. For instance, my graph
> has six lines,
> each of which represents the longitudinal change of a variable of my
> data. I want to put the variable name on each line to lable
> them. I saw
> graphs like that but don't know how to do it. Does anybody have any
> suggestions? Thanks very much.
>
> Best,
> Zun
> *
> * 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/
>
*
* 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/