Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: placing two textboxes in a graph on the x-axis


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: placing two textboxes in a graph on the x-axis
Date   Fri, 26 Aug 2011 10:02:38 +0200

On Thu, Aug 25, 2011 at 11:34 PM, Ariel Linden, DrPH wrote:
> I would like to place 2 textboxes on the x-axis of a graph (one to the right
> and one to left of the center point 0 where the xlabel would go) that says
> "benefits treatment" and "benefits controls" (as you'd see in a forest
> plot).

What about this?

*-------------- begin example ------------------
sysuse nlsw88, clear
replace grade = grade - 12

scatter ttl_exp grade , ///
        xmlab(-2.5 `""benefits" "treatment""' ///
               2.5 `""benefits" "controls""', ///
               noticks labsize(medium) )
*---------------- end example --------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index