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

st: RE: labeling graph object


From   "Nick Winter" <nwinter@policystudies.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: labeling graph object
Date   Mon, 25 Nov 2002 11:30:31 -0500

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     nwinter@policystudies.com
 Washington, DC 20009-1148           www.policystudies.com
----------------------------------------------------------- 

> -----Original Message-----
> From: zt22@cornell.edu [mailto:zt22@cornell.edu] 
> Sent: Monday, November 25, 2002 11:17 AM
> To: statalist@hsphsun2.harvard.edu
> 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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index