Statalist


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

Re: st: legend for reference lines


From   Alan Neustadtl <alan.neustadtl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: legend for reference lines
Date   Sat, 19 Dec 2009 16:38:09 -0500

Yes...it is a one off solution, not  a production solution.  In my
case I often iterate to a final graph so I typically run the basic
graph more than once anyway.  But if you were running many graphs this
might not be a great solution (though it would also work).

Best,
Alan


On Sat, Dec 19, 2009 at 4:15 PM, Martin Weiss <martin.weiss1@gmx.de> wrote:
>
> <>
>
>
> 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/
>

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