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, is already up and running.

[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 <>
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: )

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index