Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: location of text/textbox in plot


From   Jorge Eduardo Pérez Pérez <perez.jorge@ur.edu.co>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: location of text/textbox in plot
Date   Fri, 28 Oct 2011 13:57:37 -0400

This article describes how Stata chooses the x and y ranges:

http://www.stata-journal.com/sjpdf.html?articlenum=gr0019

Once you specify the -range- and -label- options of your graph, Stata
will not override your values (unless you are asking for too narrow
ranges according to your data and labels), and you can place your text
in the right place.

_______________________
Jorge Eduardo Pérez Pérez




On Fri, Oct 28, 2011 at 11:17 AM, Cohen, Elan <cohened@upmc.edu> wrote:
> Statalisters,
>
> I'm trying to add text to the upper left of my scatter plot via the -text()- option.  However, because Stata chooses the x and y ranges to be neat, there's no way for me to know exactly what the minimum x value & maximum y value are.  If I simply choose these values from my data, the text box is always closer to the center than I'd like.
>
> Is there a way to obtain this information from Stata?  Alternatively, is there an option to place the textbox in the upper left?
>
> Thank you,
>
> - Elan
>
>
> --
> Elan D Cohen, MS
> Center for Research on Health Care Data Center
> University of Pittsburgh
> cohened@upmc.edu
>
>
>
> *
> *   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   |   Site index