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]

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