Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: legend for reference lines


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: legend for reference lines
Date   Sat, 19 Dec 2009 22:15:10 +0100

<> 


But your solution would require Robert to run the code twice, once to see
that Stata lets the y-axis end at .08, and then to update the code with the
coordinate 0.84. Worse, the next graph will require a different one...



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Alan Neustadtl
Gesendet: Samstag, 19. Dezember 2009 22:12
An: statalist@hsphsun2.harvard.edu
Betreff: Re: st: legend for reference lines

How about using the -text- option like in my example below:

twoway kdensity mpg ,                    ///
      xline(16.1,lp(solid))              ///
      xline(22.22,lp(dash))              ///
      xline(28.33,lp(shortdash))         ///
      text(.084 16.10 "foo")             ///
      text(.084 22.22 "bar")             ///
      text(.084 28.33 "blup")
		
Best,
Alan
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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