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: Re: st: specifying a single value in xlabel while leaving the rest as-is


From   "Ariel Linden, DrPH" <ariel.linden@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   re: Re: st: specifying a single value in xlabel while leaving the rest as-is
Date   Fri, 3 Aug 2012 12:09:07 -0400

Thank you, Scott!!!

Date: Thu, 2 Aug 2012 16:15:25 -0500
From: Scott Merryman <scott.merryman@gmail.com>
Subject: Re: st: specifying a single value in xlabel while leaving the rest
as-is

Something like:

line weight price ,sort xlabel(0(2000)20000 0 "Unadjusted", labsize(*.8))

Scott


On Thu, Aug 2, 2012 at 4:06 PM, Ariel Linden, DrPH
<ariel.linden@gmail.com> wrote:
> Hi Fellow listers,
>
> On the x-axis of a plot, I would like to set the zero label to say
> "unadjusted". I can do that manually via the graph editor (edit or add
> individual ticks and labels), but I would prefer to do it
programmatically.
> I assume it's some combination of -xlabel( 1 "unadjusted") and
> xlabel(0(2000)20000), but I can't seem to crack the code...
>
> sysuse auto
> twoway (line weight price,sort), xlabel(0(2000)20000)
> twoway (line weight price,sort), xlabel(1 "unadjusted")
>
> Thanks in advance!
>
> Ariel
>

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