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


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: specifying a single value in xlabel while leaving the rest as-is
Date   Thu, 2 Aug 2012 16:15:25 -0500

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