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]

st: specifying a single value in xlabel while leaving the rest as-is


From   "Ariel Linden, DrPH" <[email protected]>
To   <[email protected]>
Subject   st: specifying a single value in xlabel while leaving the rest as-is
Date   Thu, 2 Aug 2012 17:06:07 -0400

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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index