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: Re: st: specifying a single value in xlabel while leaving the rest as-is
From
"Ariel Linden, DrPH" <[email protected]>
To
<[email protected]>
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 <[email protected]>
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
<[email protected]> 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/