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

RE: st: RE: adding text to "by graphs"


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: adding text to "by graphs"
Date   Fri, 25 Mar 2005 17:45:54 -0000

Interesting point. 

The program still needs to be written, 
and probably more code, and possibly trickier 
code, to write in the first instance. 

Loosely relevant here is my -cpyxplot- on SSC. 
The code shows one _undocumented_ option that 
allows customisation of the title of each 
of a set of similar graphs. 

Nick 
n.j.cox@durham.ac.uk 

Chris Ruebeck
 
> One more note for Tim if he decides to do it himself: a 
> program that is 
> 'byable' might do the looping automatically.  Yes?  Then combine the 
> graphs afterwards.

Nick Cox

> > I think this is way beyond what you can do by a -by()- option. You 
> > need to loop over groups,
> > create separate graphs, and then -combine- them. That's not 
> difficult, 
> > but you need to do it yourself.

Tim Wade
> >
> >> Can anyone provide any tips about how I can add different text 
> >> annotations in a "by graph"? I created scatter plots using the by 
> >> option and would like to add the R2 and regression 
> equations for each 
> >> graph. If I use, for example: text(1 2 "xxxx"), then 
> "xxxx" is added 
> >> to each of the graphs, which obviously won't work when I want the 
> >> unique regression equations

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